Skip to content

Commit

Permalink
fixing runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baalmart committed Dec 4, 2024
1 parent 021da4e commit ecc3ef8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/auth-service/controllers/create-transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const log4js = require("log4js");
const logger = log4js.getLogger(
`${constants.ENVIRONMENT} -- transaction-controller`
);
const transactionsUtil = require("@utils/transactions-util");
const transactionsUtil = require("@utils/create-transaction");

const transactions = {
createCheckoutSession: async (req, res, next) => {
Expand Down Expand Up @@ -140,6 +140,11 @@ const transactions = {
return;
}
},

listTransactions: async (req, res, next) => {},
updateTransaction: async (req, res, next) => {},
getTransactionStats: async (req, res, next) => {},
deleteTransaction: async (req, res, next) => {},
};

module.exports = transactions;
2 changes: 1 addition & 1 deletion src/auth-service/routes/v2/transactions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const express = require("express");
const PaymentController = require("@controllers/create-payment");
const PaymentController = require("@controllers/create-transaction");
const validateTransaction = require("@middleware/validateTransaction");
const validateTenant = require("@middleware/validateTenant");
const router = express.Router();
Expand Down

0 comments on commit ecc3ef8

Please sign in to comment.