cashTransaction remove raw in list

This commit is contained in:
Nikola Petrov 2024-02-03 12:28:04 +01:00
parent a4040197af
commit 3899531e33

View File

@ -14,9 +14,9 @@ module.exports = {
var month = splitDate[1];
year = parseInt(year);
month = parseInt(month);
transactions = await cashTransactionModel.find({ year, month }, { _id: 0, __v: 0 });
transactions = await cashTransactionModel.find({ year, month }, { _id: 0, __v: 0, raw: 0 });
} else {
transactions = await cashTransactionModel.find({}, { _id: 0, __v: 0 });
transactions = await cashTransactionModel.find({}, { _id: 0, __v: 0, raw: 0 });
}
const data = { transactions: transactions, types: types };