mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
@@ -203,7 +203,9 @@ export class ItemsService<Item extends AnyItem = AnyItem> implements AbstractSer
|
||||
action: 'create',
|
||||
payload,
|
||||
schema: this.schema,
|
||||
database: this.knex,
|
||||
// This hook is called async. If we would pass the transaction here, the hook can be
|
||||
// called after the transaction is done #5460
|
||||
database: database,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -512,7 +514,9 @@ export class ItemsService<Item extends AnyItem = AnyItem> implements AbstractSer
|
||||
action: 'update',
|
||||
payload,
|
||||
schema: this.schema,
|
||||
database: this.knex,
|
||||
// This hook is called async. If we would pass the transaction here, the hook can be
|
||||
// called after the transaction is done #5460
|
||||
database: database,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -656,7 +660,9 @@ export class ItemsService<Item extends AnyItem = AnyItem> implements AbstractSer
|
||||
action: 'delete',
|
||||
payload: null,
|
||||
schema: this.schema,
|
||||
database: this.knex,
|
||||
// This hook is called async. If we would pass the transaction here, the hook can be
|
||||
// called after the transaction is done #5460
|
||||
database: database,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user