Skip to content

Commit 2eeb7c1

Browse files
committed
Fix commented code, tidy
1 parent 516cf0c commit 2eeb7c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

@app/server/src/plugins/Orders.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default makeAddPgTableOrderByPlugin(
1616
where ${sqlIdentifier}.id = ${$organizationMemberships.alias}.user_id
1717
limit 1
1818
)`,
19-
type: TYPES.text,
19+
codec: TYPES.text,
2020
}));
2121
}
2222
);
@@ -50,10 +50,9 @@ export default makeAddPgTableOrderByPlugin(
5050
sql`${sqlIdentifier}.id = ${$organizationMemberships.alias}.user_id`,
5151
],
5252
});
53-
const expression = sql`${sqlIdentifier}.name`;
5453
return {
54+
fragment: sql`${sqlIdentifier}.name`,
5555
codec: usersSource.codec.columns["name"].codec,
56-
fragment: expression,
5756
};
5857
});
5958
}

0 commit comments

Comments
 (0)