schema updates to rental statuses
This commit is contained in:
@@ -81,6 +81,7 @@ class LateReturnService {
|
||||
const updates = {
|
||||
actualReturnDateTime: new Date(actualReturnDateTime),
|
||||
status: lateCalculation.isLate ? "returned_late" : "completed",
|
||||
payoutStatus: "pending",
|
||||
};
|
||||
|
||||
if (notes) {
|
||||
|
||||
@@ -50,11 +50,6 @@ class PayoutService {
|
||||
throw new Error("Invalid payout amount");
|
||||
}
|
||||
|
||||
// Update status to processing
|
||||
await rental.update({
|
||||
payoutStatus: "processing",
|
||||
});
|
||||
|
||||
// Create Stripe transfer
|
||||
const transfer = await StripeService.createTransfer({
|
||||
amount: rental.payoutAmount,
|
||||
|
||||
Reference in New Issue
Block a user