mirror of
https://github.com/Rolands-Laucis/Socio.git
synced 2026-05-15 14:15:57 -06:00
await arbiter
This commit is contained in:
parent
59434f74d5
commit
8cc1ab6926
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ export class SocioServer extends LogHandler {
|
|||
|
||||
//Arbiter decides if this query needs be updated. TODO needs to know what changed on the DB as well to make a decidion
|
||||
if (this.db?.Arbiter)
|
||||
if (!this.db.Arbiter({ client: initiator, sql, params }, { client, hook })) //if Arbiter returns false, we skip this hook
|
||||
if (await this.db.Arbiter({ client: initiator, sql, params }, { client, hook }) === false) //if Arbiter returns false, we skip this hook
|
||||
continue;
|
||||
|
||||
if (cache.has(hook.cache_hash))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue