diff --git a/apps/server/src/database/repos/user-token/user-token.repo.ts b/apps/server/src/database/repos/user-token/user-token.repo.ts index 58971dc4..0137cb0a 100644 --- a/apps/server/src/database/repos/user-token/user-token.repo.ts +++ b/apps/server/src/database/repos/user-token/user-token.repo.ts @@ -70,7 +70,7 @@ export class UserTokenRepo { .where('userId', '=', userId) .where('workspaceId', '=', workspaceId) .where('type', '=', tokenType) - .orderBy('expiresAt desc') + .orderBy('expiresAt', 'desc') .execute(); } diff --git a/apps/server/src/database/repos/workspace/workspace.repo.ts b/apps/server/src/database/repos/workspace/workspace.repo.ts index a38d02a7..8b9765f4 100644 --- a/apps/server/src/database/repos/workspace/workspace.repo.ts +++ b/apps/server/src/database/repos/workspace/workspace.repo.ts @@ -70,7 +70,7 @@ export class WorkspaceRepo { return await this.db .selectFrom('workspaces') .selectAll() - .orderBy('createdAt asc') + .orderBy('createdAt', 'asc') .limit(1) .executeTakeFirst(); }