fix: multiple after-update webhooks being triggered

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2022-03-29 20:23:55 +03:00
parent 47a5131c15
commit f16cd2e909
5 changed files with 21 additions and 18 deletions

View File

@@ -64,7 +64,8 @@ export default class RestApi {
return { list, count }
}
async update(id, data, oldData) {
async update(id, data, oldData, cellSaved = false) {
data._cellSaved = cellSaved
const res = await this.$axios({
method: 'put',
url: `/nc/${this.$ctx.projectId}/api/v1/${this.table}/${encodeURIComponent(id)}`,