Skip to content

Commit

Permalink
fixup! refactor StateFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed Jan 9, 2025
1 parent 62731a0 commit 1d5ed80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static Optional<List<ConfigChannel>> latestConfigChannels(ServerGroup gro
* @return the latest config channels for this server
*/
public static Optional<List<ConfigChannel>> latestConfigChannels(Org org) {
String sql = "SELECT * FROM suseOrgStateRevision WHERE org_id = :org";
String sql = "SELECT *, null as created FROM suseOrgStateRevision WHERE org_id = :org";
Query<OrgStateRevision> query = getSession().createNativeQuery(sql, OrgStateRevision.class);
query.setParameter("org", org.getId(), LongType.INSTANCE);
List<OrgStateRevision> orgs = query.getResultList();
Expand Down

0 comments on commit 1d5ed80

Please sign in to comment.