Skip to content

Commit

Permalink
Merge pull request #184 from fdhhhdjd/developer
Browse files Browse the repository at this point in the history
#159 [Cront - Backend] Run Cron API Student
  • Loading branch information
fdhhhdjd authored Mar 9, 2023
2 parents 08b8002 + cd56c0f commit 5167d42
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
const isExpired = HELPER.isExpired(resetPassword.reset_password_expire);

// If expired delete
if (isExpired !== CONSTANTS.DELETED_DISABLE) {
if (isExpired) {
await user_reset_password_model.updateResetPassword(
{ isdeleted: CONSTANTS.DELETED_ENABLE },
{ id: resetPassword.id },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
const isExpired = HELPER.isExpired(verification.linkEmailExpire);

// If expired delete
if (isExpired !== CONSTANTS.DELETED_DISABLE) {
if (isExpired) {
await user_verification_model.updateVerification(
{ isdeleted: CONSTANTS.DELETED_ENABLE },
{ verify_id: verification.verify_id },
Expand Down
2 changes: 2 additions & 0 deletions backend-manager-student/src/share/configs/regex.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module.exports = {
* @description REGEX PHONE
*/
REGEX_PHONE: /^(0[3|5|7|8|9])+([0-9]{8})$/,
REGEX_PHONE_NEW:
'^((+84|84|0)(3([2-9])([0-9]{7})|5([689])([0-9]{7})|7([0-9]{8})|8([1-9])([0-9]{7})|9([0-9])([0-9]{7})))$',
/**
* @author Nguyễn Tiến Tài
* @created_at 22/01/2022
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ module.exports = {
const data_insert = {
verify_id: ran_dom_unique_string,
user_id: id,
link_email_expire: Date.now() + CONSTANTS._10_SECONDS,
// link_email_expire: Date.now() + CONSTANTS._10_MINUTES,
link_email_expire: Date.now() + CONSTANTS._10_MINUTES,
};

// Insert database
Expand Down

0 comments on commit 5167d42

Please sign in to comment.