feat: add async suffix eslint rule (#485)
This commit is contained in:
1 parent
5723295856
commit
dcaff1d91c
60 files changed
+296
-225
No files matched your search
@@ -2,7 +2,9 @@ import { auth } from "@homarr/auth/next";
|
||||
import type { BoardPermissionsProps } from "@homarr/auth/shared";
|
||||
import { constructBoardPermissions } from "@homarr/auth/shared";
|
||||
|
||||
export const getBoardPermissions = async (board: BoardPermissionsProps) => {
|
||||
export const getBoardPermissionsAsync = async (
|
||||
board: BoardPermissionsProps,
|
||||
) => {
|
||||
const session = await auth();
|
||||
return constructBoardPermissions(board, session);
|
||||
};
|
||||
Reference in new issue
Block a user