Open penguinpowernz opened 7 years ago
I narrowed it down to the ok()
method in the BridgeToRedis.prototype.updateOrCreate
method. Someone forgot to call fromDb
on the resulting object to convert the fields to their various types.
This fixes it:
Need this at the head of the function:
var self = this;
The change the ok function to this:
function ok() {
callback(error, self.fromDb(obj));
}
Made a PR anyway..
It will only display itself when you use the upsert route while specifying an ID:
This will not do it:
But when you pass the ID to modify an existing:
Even if the model doesn't already exist: