fixes
This commit is contained in:
parent
c0e5d2482a
commit
d8008ba418
1
index.ts
1
index.ts
@ -3,3 +3,4 @@ export { MariaDB, MariaOptions } from './src/MariaDB.js';
|
||||
export { MongoDB, MongoOptions } from './src/MongoDB.js';
|
||||
export { ObjectId, Document, DeleteResult, Collection, Filter, UpdateFilter, MongoServerError } from 'mongodb';
|
||||
export { FieldInfo, OkPacket, Query, QueryOptions, Connection, PoolConnection, PoolCluster, MysqlError, Types } from 'mysql';
|
||||
export { ConsumeMessage } from 'amqplib';
|
@ -200,7 +200,7 @@ class MongoDB
|
||||
if (typeof db !== 'string')
|
||||
throw new TypeError('Expecting collection name for the first argument');
|
||||
|
||||
if (typeof query._id === 'string' && query._id.length === 12)
|
||||
if (typeof query._id === 'string')
|
||||
query._id = new ObjectId(query._id);
|
||||
|
||||
this.#logger.debug(`Incoming findOne query for ${db} with parameters ${inspect(query)}`);
|
||||
|
Loading…
Reference in New Issue
Block a user