limit remove to type 0

This commit is contained in:
Nikola Petrov 2023-10-06 23:29:25 +02:00
parent 1a1318c048
commit d12d0d10f8
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ module.exports = {
}, },
delete: async function (req, res) { delete: async function (req, res) {
cashTransactionModel.deleteMany({}) cashTransactionModel.deleteMany({ type: 0 })
.then(data => { .then(data => {
res.status(201).json({ message: "OK" }); res.status(201).json({ message: "OK" });
}); });

View File

@ -35,6 +35,6 @@
<tbody id="tbody"> <tbody id="tbody">
</tbody> </tbody>
</table> </table>
<div style="width: 800px;"><canvas id="acquisitions"></canvas></div> <div><canvas id="acquisitions"></canvas></div>
</div> </div>
</main> </main>