🏗 Refactoring the import process WIP
This commit is contained in:
@@ -28,7 +28,6 @@ SOFTWARE.
|
||||
|
||||
import xml2js from "xml2js";
|
||||
import fs from "fs";
|
||||
import { logger } from "../utils/logger.utils";
|
||||
|
||||
export const convertXMLToJSON = (xmlPayload) => {
|
||||
const parser = new xml2js.Parser({
|
||||
@@ -43,6 +42,6 @@ export const convertXMLToJSON = (xmlPayload) => {
|
||||
return result;
|
||||
})
|
||||
.catch((error) => {
|
||||
logger.error(error);
|
||||
console.log(error);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user