1 import { PostgresError } from "./postgres-error"
2 export const isDuplicateError = (err: Error & { code?: string }) => {
3 return err.code === PostgresError.DUPLICATE_ERROR
4 }