mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +00:00
new collection modal refactor
This commit is contained in:
@@ -109,7 +109,7 @@ const driver = {
|
||||
const { type } = operation;
|
||||
switch (type) {
|
||||
case 'createCollection':
|
||||
await this.script(pool, `db.createCollection('${operation.collection}')`);
|
||||
await this.script(pool, `db.createCollection('${operation.collection.name}')`);
|
||||
case 'dropOperation':
|
||||
await this.script(pool, `db.dropCollection('${operation.collection}')`);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user