diff --git a/src/auth/actions.ts b/src/auth/actions.ts index e4adb5a4..9f26b610 100644 --- a/src/auth/actions.ts +++ b/src/auth/actions.ts @@ -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); diff --git a/src/photo/actions.ts b/src/photo/actions.ts index 3d3244a6..28e81863 100644 --- a/src/photo/actions.ts +++ b/src/photo/actions.ts @@ -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[], ) =>