Skip to content

Commit 19bcfd2

Browse files
dplewisflovilmart
authored andcommitted
handle deleting of class that doesn't exist (#4184)
1 parent d8fd670 commit 19bcfd2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Adapters/Storage/Postgres/PostgresStorageAdapter.js

+6
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,12 @@ export class PostgresStorageAdapter {
981981
} else {
982982
return count;
983983
}
984+
}).catch((error) => {
985+
if (error.code === PostgresRelationDoesNotExistError) {
986+
// Don't delete anything if doesn't exist
987+
} else {
988+
throw error;
989+
}
984990
});
985991
}
986992
// Return value not currently well specified.

0 commit comments

Comments
 (0)