mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 04:06:00 +00:00
fix
This commit is contained in:
@@ -16,7 +16,7 @@ const getMacroFunction = {
|
||||
${code}
|
||||
}
|
||||
`,
|
||||
transformData: (code) => `
|
||||
transformData: (code) => `
|
||||
(rows, args, modules, selectedCells, cols, columns) => {
|
||||
${code}
|
||||
}
|
||||
@@ -142,6 +142,7 @@ function runTramsformData(
|
||||
if (cols && !columns) {
|
||||
columns = cols.map((columnName) => ({ columnName }));
|
||||
}
|
||||
columns = _.uniqBy(columns, 'columnName');
|
||||
if (!preview) {
|
||||
rows = removePreviewRowFlags(rows);
|
||||
}
|
||||
|
||||
@@ -206,12 +206,12 @@ const resultRows = rows.map((row, rowIndex) => {
|
||||
};
|
||||
|
||||
const fields = {
|
||||
year: mom.year(),
|
||||
month: mom.month() + 1,
|
||||
day: mom.day(),
|
||||
hour: mom.hour(),
|
||||
minute: mom.minute(),
|
||||
second: mom.second(),
|
||||
[args.year]: mom.year(),
|
||||
[args.month]: mom.month() + 1,
|
||||
[args.day]: mom.day(),
|
||||
[args.hour]: mom.hour(),
|
||||
[args.minute]: mom.minute(),
|
||||
[args.second]: mom.second(),
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user