-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#220 Performance code and clearn code
- Loading branch information
Showing
7 changed files
with
96 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
...student/src/send_email_user/v1/admin_api/services/email_sender_admin/email_sender_user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
const { returnReasons } = require('../../../../../share/middlewares/middleware'); | ||
|
||
const emailSenderUsers = { | ||
sendEmailUser: async (message) => { | ||
let message_queue = message | ||
return console.log('OKKKKKKKK', message_queue) | ||
} | ||
} | ||
const message_queue = message; | ||
return console.log('OKKKKKKKK', message_queue); | ||
}, | ||
}; | ||
module.exports = emailSenderUsers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
server-send-email-student/src/share/configs/template_email.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* @author Nguyễn Tiến Tài | ||
* @created_at 23/02/2022 | ||
* @description Message template email | ||
*/ | ||
module.exports = { | ||
STUDENT_WARNING_HACKER: { | ||
SUBJECT: 'Verify Your Email', | ||
TEMPLATE: 'Warning_account_by_hacker', | ||
}, | ||
STUDENT_RESET_PASSWORD: { | ||
SUBJECT: 'Verify Your ELink Reset Password ${name}', | ||
TEMPLATE: 'link_reset_password_student', | ||
}, | ||
STUDENT_VERIFICATION_EMAIL: { | ||
SUBJECT: 'Verification Email ${name}', | ||
TEMPLATE: 'link_verification_email_student', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters