handle deleting of class that doesn't exist (#4184)

This commit is contained in:
Diamond Lewis
2017-09-18 18:02:56 -05:00
committed by Florent Vilmart
parent d8fd670013
commit 19bcfd27dd

View File

@@ -981,6 +981,12 @@ export class PostgresStorageAdapter {
} else { } else {
return count; return count;
} }
}).catch((error) => {
if (error.code === PostgresRelationDoesNotExistError) {
// Don't delete anything if doesn't exist
} else {
throw error;
}
}); });
} }
// Return value not currently well specified. // Return value not currently well specified.