Added Multi-Company Support
This commit is contained in:
@@ -25,8 +25,8 @@ async function rowsFromImport(format, buffer) {
|
||||
return Papa.parse(text, { header: true, skipEmptyLines: true }).data;
|
||||
}
|
||||
|
||||
async function assetExport(format) {
|
||||
const rows = assetExportRows();
|
||||
async function assetExport(format, companyId) {
|
||||
const rows = assetExportRows(companyId);
|
||||
if (format === 'csv') {
|
||||
return {
|
||||
contentType: 'text/csv',
|
||||
|
||||
Reference in New Issue
Block a user