feat: add async suffix eslint rule (#485)
This commit is contained in:
@@ -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