mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix rule action not triggered due to the page index not being refreshed after page creation
This commit is contained in:
parent
fcb4e859f8
commit
3347e81e39
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
@ -240,7 +240,7 @@ export const updatePage = async (
|
|||
updatedAt: new Date(),
|
||||
},
|
||||
},
|
||||
refresh: ctx.refresh,
|
||||
refresh: 'wait_for', // wait for the index to be refreshed before returning
|
||||
retry_on_conflict: 3,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue