uploads - moved logic to FE because of plugins

This commit is contained in:
Jan Prochazka
2020-11-22 09:14:19 +01:00
parent 7d1c0c5c18
commit 3cdba4339f
7 changed files with 68 additions and 45 deletions

View File

@@ -56,6 +56,7 @@ const jsonlFormat = {
writerFunc: 'jsonLinesWriter',
};
/** @returns {import('dbgate-types').FileFormatDefinition[]} */
export function buildFileFormats(plugins) {
const res = [excelFormat, jsonlFormat];
for (const { content } of plugins) {