And they change a lot things in 2.2...again


#1

hi
Again any subtencial change in 2.2 that need app code update
this time in 2.2
before a setRecord or Update record:

params = { resource:[ params ]}
was in 2.1
params = { “resource”:[ params ]}

Remember that this kind of change need code recertification when we upgade from 2.1 to 2.2

and in 2.2 mongo db $date is not working anymore…
for ex
item = {
_id:myId,

ISOLastLogin : { “$date”: now },

}
any idea ?

thanks


#2

Can you provide the complete requests and responses for these two cases?


#3

hi Tod
in 2.1

function updateLastLogin() {
var now = new Date()
var item =
{
"_id":myId,
“lastLogin”:now,
“ISOLastLogin” : { “$date”: now },

}
var params= item
var callback = function(response) {
// alert(“last login ok” + JSON.stringify(response))

}
$.api.updateRecord(‘users’, params, token, callback);

}

not Working anymore since 2.2

thanks