forked from Galactic/galactic-bot
remove console log
This commit is contained in:
parent
5fa127fda3
commit
6cf0217d22
@ -168,7 +168,6 @@ class MongodbTable {
|
|||||||
//Lazy Function
|
//Lazy Function
|
||||||
_handleData(data) { //Convert data._id to Mongo ObjectIds (gets converted to plaintext through shard communication)
|
_handleData(data) { //Convert data._id to Mongo ObjectIds (gets converted to plaintext through shard communication)
|
||||||
if(data._id) {
|
if(data._id) {
|
||||||
console.log(data._id, typeof 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 = {
|
||||||
$in: Object.values(data._id)[0].map((id) => {
|
$in: Object.values(data._id)[0].map((id) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user