Skip to content

Commit

Permalink
fix email issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshbasnet089 committed Mar 2, 2024
1 parent de39089 commit d2d63f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion tapShareBackend/controller/email/fileController.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const scheduleDeletion = (fileId) => {
const deletionJob = schedule.scheduleJob(
new Date(Date.now() + 24 * 60 * 60 * 1000),
async () => {
console.log("schedule called");
try {
const file = await File.findByIdAndDelete(fileId);
if (file) {
Expand Down
6 changes: 3 additions & 3 deletions tapShareBackend/services/sendEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const { EMAIL,EMAIL_APP_PASSWORD } = require("../config/secrets");
const sendEmail = async (options) => {
try {
var transporter = nodemailer.createTransport({
// service: "gmail",
host: "smtp.gmail.com",
port: 465,
service: "gmail",
// host: "smtp.gmail.com",
// port: 465,

auth: {
user: EMAIL,
Expand Down

0 comments on commit d2d63f6

Please sign in to comment.