feat: add async suffix eslint rule (#485)

This commit is contained in:
Manuel authored and GitHub committed 2024-05-18 12:25:33 +02:00
1 parent 5723295856
commit dcaff1d91c
60 files changed
+296 -225

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ import {
sessionTokenCookieName,
} from "./session";
export const getCurrentUserPermissions = async (
export const getCurrentUserPermissionsAsync = async (
db: Database,
userId: string,
) => {
@@ -47,7 +47,7 @@ export const createSessionCallback = (
...session.user,
id: user.id,
name: user.name,
permissions: await getCurrentUserPermissions(db, user.id),
permissions: await getCurrentUserPermissionsAsync(db, user.id),
},
};
};