This commit is contained in:
Erik 2020-04-16 14:51:59 +03:00
parent 4434016e5c
commit 3beb321ce7

View File

@ -45,7 +45,7 @@ class StorageManager {
if(!message.provider) return this._send(shard, { error: true, message: "Provider not provided", transactionID: message.transactionID });
if(!this.providers.has(message.provider)) return this._send(shard, { error: true, message: `Invalid provider, expected 'mongodb' or 'mariadb', got '${message.provider}'`, transactionID: message.transactionID });
if(!message.request) return this._send(shard, { error: true, message: `Missing query.`, transactionID: message.transactionID });
if(!message.request) return this._send(shard, { error: true, message: `Missing request.`, transactionID: message.transactionID });
const response = await this.providers.get(message.provider)._query(message.request);