feat: 增加充值功能
This commit is contained in:
@@ -36,6 +36,6 @@ export const pushBill = async ({
|
||||
$inc: { balance: -price }
|
||||
});
|
||||
} catch (error) {
|
||||
Bill.findByIdAndDelete(billId);
|
||||
billId && Bill.findByIdAndDelete(billId);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user