Skip to content

Commit

Permalink
chore(playground): fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdoRan committed Oct 24, 2024
1 parent 41b0773 commit d2f1013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const loginUser = action
.schema(getSchema, {
// Here we use the `flattenValidationErrors` function to customize the returned validation errors
// object to the client.
handleValidationErrorsShape: (ve) =>
handleValidationErrorsShape: async (ve) =>
flattenValidationErrors(ve).fieldErrors,
})
.action(async ({ parsedInput: { username, password } }) => {
Expand Down
8 changes: 4 additions & 4 deletions apps/playground/src/app/(examples)/direct/login-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const loginUser = action
.schema(schema, {
// Here we use the `flattenValidationErrors` function to customize the returned validation errors
// object to the client.
handleValidationErrorsShape: (ve) =>
handleValidationErrorsShape: async (ve) =>
flattenValidationErrors(ve).fieldErrors,
})
.action(
Expand All @@ -43,15 +43,15 @@ export const loginUser = action
});
},
{
onSuccess: (args) => {
onSuccess: async (args) => {
console.log("Logging from onSuccess callback:");
console.dir(args, { depth: null });
},
onError: (args) => {
onError: async (args) => {
console.log("Logging from onError callback:");
console.dir(args, { depth: null });
},
onSettled: (args) => {
onSettled: async (args) => {
console.log("Logging from onSettled callback:");
console.dir(args, { depth: null });
},
Expand Down

0 comments on commit d2f1013

Please sign in to comment.