mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Fixed #bulkDestroy
from calling bulkDestroy
Rather than calling itself with the newly created transaction, it would call the "parent" method, which meant that two events were dispatched. TBH I think we can get rid of the check for a transaction here, and so the parent method too, but not 100% sure.
This commit is contained in:
parent
5cb914b609
commit
6de0a2bfff
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ class PostsService {
|
|||
async #bulkDestroy(options) {
|
||||
if (!options.transacting) {
|
||||
return await this.models.Post.transaction(async (transacting) => {
|
||||
return await this.bulkDestroy({
|
||||
return await this.#bulkDestroy({
|
||||
...options,
|
||||
transacting
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue