forked from Galactic/galactic-bot
debugging
This commit is contained in:
parent
09204db74d
commit
ffb57d6e78
@ -170,6 +170,7 @@ class MongodbTable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_handleData(data) { //Convert data._id to Mongo ObjectIds
|
_handleData(data) { //Convert data._id to Mongo ObjectIds
|
||||||
|
console.log(data);
|
||||||
if (data._id) {
|
if (data._id) {
|
||||||
if (typeof data._id === 'string') data._id = ObjectId(data._id);
|
if (typeof data._id === 'string') data._id = ObjectId(data._id);
|
||||||
else if (typeof data._id === 'object') data._id = {
|
else if (typeof data._id === 'object') data._id = {
|
||||||
|
Loading…
Reference in New Issue
Block a user