fix(server): hotfix (#6161)

This commit is contained in:
liuyi
2024-03-18 10:29:51 +08:00
committed by LongYinan
parent 636fa503b8
commit e94be8968b
2 changed files with 6 additions and 0 deletions

View File

@@ -226,6 +226,10 @@ export class AuthService implements OnApplicationBootstrap {
}
async getSession(token: string) {
if (!token) {
return null;
}
return this.db.$transaction(async tx => {
const session = await tx.session.findUnique({
where: {