debugging

This commit is contained in:
Erik 2022-07-07 11:20:03 +03:00
parent 09204db74d
commit ffb57d6e78
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -170,6 +170,7 @@ class MongodbTable {
}
_handleData(data) { //Convert data._id to Mongo ObjectIds
console.log(data);
if (data._id) {
if (typeof data._id === 'string') data._id = ObjectId(data._id);
else if (typeof data._id === 'object') data._id = {