From c6bca6a602783791428429f4bad312e48133d771 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Fri, 9 May 2025 16:44:33 +0100 Subject: [PATCH] fix deprecated kysely usage --- apps/server/src/database/repos/user-token/user-token.repo.ts | 2 +- apps/server/src/database/repos/workspace/workspace.repo.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }