Refactor server side notifications (#2327)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2022-10-26 17:24:39 +07:00
committed by GitHub
parent 70e00dbb5f
commit 3a8d1e2bcb
58 changed files with 539 additions and 400 deletions
+1
View File
@@ -408,6 +408,7 @@ class TServerStorage implements ServerStorage {
...(await ctx.with('process-move', { _class }, () => this.processMove(ctx, tx))),
...(await ctx.with('process-triggers', {}, (ctx) =>
this.triggers.apply(tx.modifiedBy, tx, {
workspace: this.workspace,
fx: triggerFx.fx,
fulltextFx: (f) => triggerFx.fx(() => f(this.fulltextAdapter)),
storageFx: (f) => {
+1
View File
@@ -98,6 +98,7 @@ export interface Pipeline extends LowLevelStorage {
* @public
*/
export interface TriggerControl {
workspace: string
txFactory: TxFactory
findAll: Storage['findAll']
hierarchy: Hierarchy