import { IPostponedTransaction, PostponedTransaction } from '../models/PostponedTransactions.model';

export class PostponedTransactionsRepository {
  async cleanRecalculated(transactionId: string) {
    await PostponedTransaction.deleteMany({ transactionId });
  }

  async createPostponedTransaction(postponedTransaction: IPostponedTransaction) {
    await PostponedTransaction.create(postponedTransaction);
  }
}
