Skip to content

Commit

Permalink
error message passed to CSR
Browse files Browse the repository at this point in the history
  • Loading branch information
musiur committed Aug 20, 2024
1 parent 7250d98 commit b022ca1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/reviews/post/_utils/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const Action___POST__Review = async (data: any) => {
return {
success: false,
message: "Something went wrong",
error
}
}
}
Expand All @@ -33,6 +34,7 @@ export const Action___GET__AllReviews = async () => {
return {
success: false,
message: "Something went wrong",
error
}
}
}
Expand All @@ -46,6 +48,7 @@ export const Action___GET__Review = async (id: string) => {
return {
success: false,
message: "Something went wrong",
error
}
}
}
Expand All @@ -67,6 +70,7 @@ export const Action___PATCH__Review = async (id: string, data: any) => {
return {
success: false,
message: "Something went wrong",
error
}
}
}
Expand All @@ -84,6 +88,7 @@ export const Action___DELETE__Review = async (id: string) => {
return {
success: false,
message: "Something went wrong",
error
}
}
}

0 comments on commit b022ca1

Please sign in to comment.