Mark server actions async

This commit is contained in:
Sam Becker 2024-12-22 12:43:51 -05:00
parent de4eb90309
commit 93cf0d1f23
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ export const signInAction = async (
export const signOutAndRedirectAction = async () =>
signOut({ redirectTo: PATH_ROOT });
export const getAuthAction = () => auth();
export const getAuthAction = async () => auth();
export const logClientAuthUpdate = (data: Session | null | undefined) =>
export const logClientAuthUpdate = async (data: Session | null | undefined) =>
console.log('Client auth update', data);

View File

@ -205,7 +205,7 @@ export const updatePhotoAction = async (formData: FormData) =>
redirect(PATH_ADMIN_PHOTOS);
});
export const tagMultiplePhotosAction = (
export const tagMultiplePhotosAction = async (
tags: string,
photoIds: string[],
) =>