handle deleting of class that doesn't exist (#4184)
This commit is contained in:
committed by
Florent Vilmart
parent
d8fd670013
commit
19bcfd27dd
@@ -981,6 +981,12 @@ export class PostgresStorageAdapter {
|
||||
} else {
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user