gemcap-be-common 1.4.255 → 1.4.256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -362,7 +362,10 @@ class BankUploadedTransactionsService {
|
|
|
362
362
|
await UploadedBankTransaction_model_1.UploadedBankTransaction.updateOne({ _id: new mongoose_1.default.Types.ObjectId(transactionId) }, { splitTransactions: mappedSplitTransactions });
|
|
363
363
|
}
|
|
364
364
|
async deleteBankTransaction(transactionIds) {
|
|
365
|
-
await UploadedBankTransaction_model_1.UploadedBankTransaction.deleteMany({
|
|
365
|
+
await UploadedBankTransaction_model_1.UploadedBankTransaction.deleteMany({
|
|
366
|
+
_id: { $in: transactionIds },
|
|
367
|
+
isConverted: { $ne: true },
|
|
368
|
+
});
|
|
366
369
|
}
|
|
367
370
|
async revertAllBankTransactions(startDate, endDate, userId) {
|
|
368
371
|
const transactions = await this.getUploadedBankTransactions(startDate, endDate);
|
|
@@ -403,7 +403,10 @@ export class BankUploadedTransactionsService {
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
async deleteBankTransaction(transactionIds: string[]) {
|
|
406
|
-
await UploadedBankTransaction.deleteMany({
|
|
406
|
+
await UploadedBankTransaction.deleteMany({
|
|
407
|
+
_id: { $in: transactionIds },
|
|
408
|
+
isConverted: { $ne: true },
|
|
409
|
+
});
|
|
407
410
|
}
|
|
408
411
|
|
|
409
412
|
async revertAllBankTransactions(startDate: Date, endDate: Date, userId: string) {
|