diff --git a/src/custom_modules/parsers/OCR.js b/src/custom_modules/parsers/OCR.js index d710aea4..02c1c2c6 100644 --- a/src/custom_modules/parsers/OCR.js +++ b/src/custom_modules/parsers/OCR.js @@ -1,7 +1,7 @@ const serviceCodeEnum = require("../../enums/serviceCode"); const transactionCodeEnum = require("../../enums/transactionCode"); const recordTypeEnum = require("../../enums/recordType"); -const paymentMethodsEnum = require("../../enums/paymentMethods"); +const paymentMethodsEnum = require("../../enums/paymentMethods").default; const { utcDate } = require("../utcDate"); module.exports = { diff --git a/src/custom_modules/vipps.ts b/src/custom_modules/vipps.ts index 57d7bc9a..f59f32d8 100644 --- a/src/custom_modules/vipps.ts +++ b/src/custom_modules/vipps.ts @@ -4,7 +4,7 @@ import { sendDonationReceipt, sendVippsErrorWarning } from "./mail"; const config = require("./../config"); import crypto from "crypto"; -const paymentMethods = require("../enums/paymentMethods"); +import paymentMethods from "../enums/paymentMethods"; import request from "request-promise-native"; const mail = require("../custom_modules/mail"); import moment from "moment"; diff --git a/src/routes/reports/vipps.ts b/src/routes/reports/vipps.ts index 204eeea9..c700aaaf 100644 --- a/src/routes/reports/vipps.ts +++ b/src/routes/reports/vipps.ts @@ -1,9 +1,9 @@ import { DAO } from "../../custom_modules/DAO"; import { sendDonationReceipt } from "../../custom_modules/mail"; import { parseReport } from "../../custom_modules/parsers/vipps"; +import payment from "../../enums/paymentMethods"; const config = require("../../config"); -const payment = require("../../enums/paymentMethods"); module.exports = async (req, res, next) => { if (!req.files || !req.files.report) return res.sendStatus(400);