Mark server actions async
This commit is contained in:
parent
de4eb90309
commit
93cf0d1f23
@ -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);
|
||||
|
||||
@ -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[],
|
||||
) =>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user