Merge pull request #1531 from omnivore-app/fix/rule

Fix rule action not triggered due to the page index not being refreshed after page creation
This commit is contained in:
Hongbo Wu 2022-12-12 10:18:58 +08:00 committed by GitHub
commit 58209b5c41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -212,7 +212,7 @@ export const createPage = async (
updatedAt: new Date(),
savedAt: new Date(),
},
refresh: ctx.refresh,
refresh: 'wait_for', // wait for the index to be refreshed before returning
})
page.id = body._id as string