Skip to content

Commit

Permalink
docs: fix basic crud example
Browse files Browse the repository at this point in the history
Related: #4213
  • Loading branch information
darrachequesne committed Dec 16, 2021
1 parent 7a70f63 commit c196689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/basic-crud-application/server/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export enum Errors {

const errorValues: string[] = Object.values(Errors);

export function sanitizeErrorMessage(message: string) {
if (errorValues.includes(message)) {
export function sanitizeErrorMessage(message: any) {
if (typeof message === "string" && errorValues.includes(message)) {
return message;
} else {
return "an unknown error has occurred";
Expand Down

0 comments on commit c196689

Please sign in to comment.