mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(server): hotfix (#6161)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user