Skip to content

Commit

Permalink
fix docs in internalTransactionsService
Browse files Browse the repository at this point in the history
  • Loading branch information
ACHIVX committed Jul 1, 2024
1 parent dc9ea0a commit 6a428e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/internalTransactionsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports.InsufficientFundsError = InsufficientFundsError;

/**
* @typedef {Object} TransactionCreationParameters
* @property {STATUSES} status
* @property {mongoose.Types.ObjectId} account
* @property {string} amount
* @property {Object<string, string>} meta
Expand All @@ -29,6 +30,7 @@ module.exports.InsufficientFundsError = InsufficientFundsError;
* @param {TransactionCreationParameters[]} parameters
* @param {mongoose.ClientSession} session mongodb session
* @returns {Promise<InternalTransactionModel>}
* @throws {InsufficientFundsError} if at least one of accounts has its balance gone below zero. The mongodb transaction MUST be reverted in case of such error.
*/
const createTransactions = (module.exports.createTransactions =
async function createTransactions(parameters, session) {
Expand Down

0 comments on commit 6a428e1

Please sign in to comment.