Rename concurrencyToken to concurrency
This commit is contained in:
@@ -31,7 +31,7 @@ export default {
|
||||
}
|
||||
window.$gz.store.commit("setFormCustomTemplateItem", {
|
||||
formKey: formKey,
|
||||
concurrencyToken: res.data.concurrencyToken,
|
||||
concurrency: res.data.concurrency,
|
||||
value: addDataKeyNames(JSON.parse(res.data.template))
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ export default {
|
||||
set(formKey, token, template) {
|
||||
window.$gz.store.commit("setFormCustomTemplateItem", {
|
||||
formKey: formKey,
|
||||
concurrencyToken: token,
|
||||
concurrency: token,
|
||||
value: addDataKeyNames(JSON.parse(template))
|
||||
});
|
||||
},
|
||||
|
||||
@@ -349,7 +349,7 @@ export default {
|
||||
return new Promise(function upsertDataToServer(resolve, reject) {
|
||||
//determine if this is a new or existing record
|
||||
let fetchOptions = undefined;
|
||||
if (data.concurrencyToken) {
|
||||
if (data.concurrency) {
|
||||
//has concurrency token, so this is a PUT as it's updating an existing record
|
||||
fetchOptions = that.fetchPutOptions(data);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user