Skip to content

Commit

Permalink
Merge pull request #274 from Backendless/apavelko/30512/console_shoul…
Browse files Browse the repository at this point in the history
…d_use_method_add_instead_of_set

BKNDLSS-30512 Console should use method ADD instead of set
  • Loading branch information
Fr3ud authored Nov 29, 2022
2 parents 00b4527 + c4c43c1 commit 1584bfc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/data-hives.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,19 @@ export default req => ({
return keys.map(key => req.get(dataHiveStoreKey(appId, hiveName, storeType, key)))
},

saveHiveStoreRecord(appId, hiveName, storeType, keyName, payload) {
setHiveStoreValue(appId, hiveName, storeType, keyName, payload) {
return req.put(dataHiveStoreKey(appId, hiveName, storeType, keyName), payload)
},

addHiveStoreValue(appId, hiveName, storeType, keyName, payload) {
return req.put(`${ dataHiveStoreKey(appId, hiveName, storeType, keyName) }/add`, payload)
},

removeHiveStoreRecords(appId, hiveName, storeType, keys) {
return req.delete(dataHiveStore(appId, hiveName, storeType), keys)
},

removeHiveStoreValue(appId, hiveName, storeType, keyName, values) {
return req.delete(`${ dataHiveStoreKey(appId, hiveName, storeType, keyName) }/values`, values)
},
})

0 comments on commit 1584bfc

Please sign in to comment.