Handle validation for duplicated emails

This commit is contained in:
Luis Alvarez
2020-10-19 22:08:01 -05:00
parent 9257b44c0d
commit 0922c87621
2 changed files with 37 additions and 15 deletions

View File

@@ -27,7 +27,7 @@ export type BigcommerceHandlers<T = any> = {
export type BigcommerceApiResponse<T> = {
data: T | null
errors?: { message: string }[]
errors?: { message: string; code?: string }[]
}
export default function createApiHandler<