mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-16 06:01:56 +01:00
3 lines
160 B
TypeScript
3 lines
160 B
TypeScript
export function isDuplicateKeyValueError(e: unknown | Error): boolean {
|
|
return (e as any).message && (e as Error).message.startsWith('duplicate key value');
|
|
}
|