? instead & for check-and-set param (#14168)

This commit is contained in:
Phil Renaud
2022-08-17 16:13:29 -04:00
committed by GitHub
parent fd148aad86
commit 8097ee78fb

View File

@@ -13,7 +13,7 @@ export default class VariableAdapter extends ApplicationAdapter {
let data = this.serialize(snapshot);
let baseUrl = this.buildURL(type.modelName, data.ID);
const checkAndSetValue = snapshot?.attr('modifyIndex') || 0;
return this.ajax(`${baseUrl}&cas=${checkAndSetValue}`, 'PUT', { data });
return this.ajax(`${baseUrl}?cas=${checkAndSetValue}`, 'PUT', { data });
}
urlForFindAll(modelName) {