diff --git a/packages/backend/src/misc/is-duplicate-key-value-error.ts b/packages/backend/src/misc/is-duplicate-key-value-error.ts index 2ba78f4d2f6a..f5343d187cbd 100644 --- a/packages/backend/src/misc/is-duplicate-key-value-error.ts +++ b/packages/backend/src/misc/is-duplicate-key-value-error.ts @@ -1,5 +1,5 @@ -import { QueryFailedError } from "typeorm"; +import { QueryFailedError } from 'typeorm'; export function isDuplicateKeyValueError(e: unknown | Error): boolean { - return e instanceof QueryFailedError && e.driverError.code === "23505"; + return e instanceof QueryFailedError && e.driverError.code === '23505'; }