email refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const { Rental, User, Item } = require("../models");
|
||||
const StripeService = require("./stripeService");
|
||||
const emailService = require("./emailService");
|
||||
const emailServices = require("./email");
|
||||
const { Op } = require("sequelize");
|
||||
|
||||
class PayoutService {
|
||||
@@ -82,7 +82,7 @@ class PayoutService {
|
||||
|
||||
// Send payout notification email to owner
|
||||
try {
|
||||
await emailService.sendPayoutReceivedEmail(rental);
|
||||
await emailServices.rentalFlow.sendPayoutReceivedEmail(rental.owner, rental);
|
||||
console.log(
|
||||
`Payout notification email sent to owner for rental ${rental.id}`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user