Type check scripts/

This commit is contained in:
Alex Gleason
2024-11-21 10:25:15 -06:00
parent e38392b269
commit ceddcce4cf
5 changed files with 8 additions and 5 deletions

View File

@@ -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);