prostgles-server 4.2.75 → 4.2.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,7 +36,7 @@ async function initPubSubManager() {
|
|
|
36
36
|
WHERE app_id = ${(0, PubSubManager_1.asValue)(this.appId)}
|
|
37
37
|
`);
|
|
38
38
|
console.log("REMOVE app check disabled");
|
|
39
|
-
if (!this.appCheck && Math.random()
|
|
39
|
+
if (!this.appCheck && Math.random() > 12) {
|
|
40
40
|
this.appCheck = setInterval(async () => {
|
|
41
41
|
let checkForStaleTriggers = "";
|
|
42
42
|
try {
|
|
@@ -41,7 +41,7 @@ export async function initPubSubManager(this: PubSubManager): Promise<PubSubMana
|
|
|
41
41
|
`);
|
|
42
42
|
|
|
43
43
|
console.log("REMOVE app check disabled");
|
|
44
|
-
if (!this.appCheck && Math.random()
|
|
44
|
+
if (!this.appCheck && Math.random() > 12) {
|
|
45
45
|
|
|
46
46
|
this.appCheck = setInterval(async () => {
|
|
47
47
|
let checkForStaleTriggers = "";
|
package/package.json
CHANGED
|
@@ -486,10 +486,12 @@ export const isomorphicQueries = async (db: DBOFullyTyped | DBHandlerClient, log
|
|
|
486
486
|
{ returnType: "rows" }
|
|
487
487
|
) as { tgname: string; enabled: boolean; }[];
|
|
488
488
|
}
|
|
489
|
-
await sub.unsubscribe();
|
|
490
489
|
let validTriggers = await getTableTriggers(table_name);
|
|
490
|
+
console.log("unsubscribe start")
|
|
491
|
+
await sub.unsubscribe();
|
|
492
|
+
console.log("unsubscribe end")
|
|
491
493
|
assert.equal(validTriggers.filter(t => t.enabled).length, 3, '3 Triggers should be enabled');
|
|
492
|
-
await db.sql?.(`DELETE FROM prostgles.app_triggers`, []);
|
|
494
|
+
await db.sql?.(`DELETE FROM prostgles.app_triggers`, []);
|
|
493
495
|
validTriggers = await getTableTriggers(table_name);
|
|
494
496
|
assert.equal(validTriggers.length, 3, '3 Triggers should exist but be disabled');
|
|
495
497
|
assert.equal(validTriggers.filter(t => t.enabled).length, 0);
|