limit remove to type 0
This commit is contained in:
parent
1a1318c048
commit
d12d0d10f8
@ -81,7 +81,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
delete: async function (req, res) {
|
||||
cashTransactionModel.deleteMany({})
|
||||
cashTransactionModel.deleteMany({ type: 0 })
|
||||
.then(data => {
|
||||
res.status(201).json({ message: "OK" });
|
||||
});
|
||||
|
@ -35,6 +35,6 @@
|
||||
<tbody id="tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="width: 800px;"><canvas id="acquisitions"></canvas></div>
|
||||
<div><canvas id="acquisitions"></canvas></div>
|
||||
</div>
|
||||
</main>
|
Loading…
x
Reference in New Issue
Block a user