不具合を再現させる手順・サンプルコード(Step for Reproduce bug / Sample code)
ncmb.User.login("abc", "abc")
.then(function(data){
// ログイン後処理
console.log("logged in DONE");
var userCur = ncmb.User.getCurrentUser();
console.log("BEFORE:" + JSON.stringify(userCur))
userCur.set("newkey123", "newvalue123")
.update()
.then(function(data){
var checkUserCur = ncmb.User.getCurrentUser();
console.log("AFTER:" + JSON.stringify(checkUserCur))
})
})
.catch(function(err){
// エラー処理
console.log("logged in ERROR" + err);
});
実行ログ
logged in DONE
BEFORE:{"userName":"abc","password":"abc","objectId":"Z***","mailAddress":null,"mailAddressConfirm":null,"sessionToken":"KZ***","createDate":"2019-11-15T05:46:43.315Z","updateDate":"2019-12-02T04:54:18.659Z","authData":null,"score":2,"newkey":"newvalue"}
AFTER:{"userName":"abc","password":"abc","objectId":"Z***","mailAddress":null,"mailAddressConfirm":null,"sessionToken":"KZ***","createDate":"2019-11-15T05:46:43.315Z","updateDate":"2019-12-02T04:54:18.659Z","authData":null,"score":2,"newkey":"newvalue"}
不具合の概要(Description of bug)