Skip to content

Commit 7dfda8d

Browse files
committed
Make every hook asynv
1 parent c8134e8 commit 7dfda8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/services/lifecycle/lifecycle.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = ({ strapi }) => {
4242
)
4343
})
4444
},
45-
afterCreateMany() {
45+
async afterCreateMany() {
4646
strapi.log.error(
4747
`Meilisearch does not work with \`afterCreateMany\` hook as the entries are provided without their id`
4848
)
@@ -72,12 +72,12 @@ module.exports = ({ strapi }) => {
7272
)
7373
})
7474
},
75-
afterUpdateMany() {
75+
async afterUpdateMany() {
7676
strapi.log.error(
7777
`Meilisearch could not find an example on how to access the \`afterUpdateMany\` hook. Please consider making an issue to explain your use case`
7878
)
7979
},
80-
afterDelete(event) {
80+
async afterDelete(event) {
8181
const { result, params } = event
8282
const meilisearch = strapi
8383
.plugin('meilisearch')
@@ -106,7 +106,7 @@ module.exports = ({ strapi }) => {
106106
)
107107
})
108108
},
109-
afterDeleteMany() {
109+
async afterDeleteMany() {
110110
strapi.log.error(
111111
`Meilisearch could not find an example on how to access the \`afterDeleteMany\` hook. Please consider making an issue to explain your use case`
112112
)

0 commit comments

Comments
 (0)