mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 22:39:33 +09:00
4 lines
160 B
TypeScript
4 lines
160 B
TypeScript
export function isDuplicateKeyValueError(e: unknown | Error): boolean {
|
|
return (e as any).message && (e as Error).message.startsWith('duplicate key value');
|
|
}
|