mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-18 11:44:20 +01:00
Type check scripts/
This commit is contained in:
@@ -31,7 +31,7 @@ const importUsers = async (
|
||||
try {
|
||||
await doEvent(event);
|
||||
} catch (error) {
|
||||
if (error.message.includes('violates unique constraint')) {
|
||||
if (error instanceof Error && error.message.includes('violates unique constraint')) {
|
||||
console.warn(`Skipping existing event ${event.id}...`);
|
||||
} else {
|
||||
console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user