Skip to content

Commit

Permalink
add schema watch ignore to orphaned subscription removal
Browse files Browse the repository at this point in the history
  • Loading branch information
prostgles committed Oct 30, 2024
1 parent 7b1f0b0 commit 07892e2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions lib/PubSubManager/notifListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ export async function notifListener(this: PubSubManager, data: { payload: string
if(orphanedTableConditions.length){
this.db
.any(`
/* Delete removed subscriptions */
/* ${PubSubManager.EXCLUDE_QUERY_FROM_SCHEMA_WATCH_ID} */
DELETE FROM prostgles.app_triggers at
WHERE EXISTS (
SELECT 1
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prostgles-server",
"version": "4.2.131",
"version": "4.2.132",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion tests/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 07892e2

Please sign in to comment.