Skip to content

Commit

Permalink
Hotfix for payment methods enum
Browse files Browse the repository at this point in the history
  • Loading branch information
fellmirr committed Aug 11, 2023
1 parent 7961527 commit c5175f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/custom_modules/parsers/OCR.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/custom_modules/vipps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/routes/reports/vipps.ts
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit c5175f9

Please sign in to comment.