mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 11:16:44 -06: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');
|
|
}
|