mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 01:33:59 +00:00
fix
This commit is contained in:
@@ -192,7 +192,7 @@ export const copyRowsFormatDefs = {
|
|||||||
},
|
},
|
||||||
mongoInsert: {
|
mongoInsert: {
|
||||||
label: 'Copy as Mongo INSERTs',
|
label: 'Copy as Mongo INSERTs',
|
||||||
name: 'Mongo UPDATEs',
|
name: 'Mongo INSERTs',
|
||||||
formatter: clipboardMongoInsertFormatter(),
|
formatter: clipboardMongoInsertFormatter(),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -135,12 +135,16 @@ const driver = {
|
|||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
options.info({
|
options.info({
|
||||||
message: JSON.stringify(resValue),
|
message: `Result: ${JSON.stringify(resValue)}`,
|
||||||
time: new Date(),
|
time: new Date(),
|
||||||
severity: 'info',
|
severity: 'info',
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('Result cannot be stringified');
|
options.info({
|
||||||
|
message: `Result: ${resValue}`,
|
||||||
|
time: new Date(),
|
||||||
|
severity: 'info',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const arrayRes = findArrayResult(resValue);
|
const arrayRes = findArrayResult(resValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user