3 lines
139 B
TypeScript
3 lines
139 B
TypeScript
export function isDuplicateKeyValueError(e: unknown | Error): boolean {
|
|
return (e as Error).message?.startsWith("duplicate key value");
|
|
}
|