fix deprecated kysely usage
This commit is contained in:
parent
55d1a2c932
commit
c6bca6a602
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ export class UserTokenRepo {
|
|||
.where('userId', '=', userId)
|
||||
.where('workspaceId', '=', workspaceId)
|
||||
.where('type', '=', tokenType)
|
||||
.orderBy('expiresAt desc')
|
||||
.orderBy('expiresAt', 'desc')
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export class WorkspaceRepo {
|
|||
return await this.db
|
||||
.selectFrom('workspaces')
|
||||
.selectAll()
|
||||
.orderBy('createdAt asc')
|
||||
.orderBy('createdAt', 'asc')
|
||||
.limit(1)
|
||||
.executeTakeFirst();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue