fix: destroy后仍有push流

This commit is contained in:
archer
2023-03-24 14:35:33 +08:00
parent 6ce727f9ea
commit 30678d8ebf
2 changed files with 4 additions and 9 deletions

View File

@@ -14,15 +14,9 @@ export const pushBill = async ({
}) => {
await connectToDatabase();
const modelItem = modelList.find((item) => item.model === modelName);
if (!modelItem) return;
let billId;
try {
await connectToDatabase();
const modelItem = modelList.find((item) => item.model === modelName);
if (!modelItem) return;