yazid138 2 년 전
부모
커밋
6257669a56
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      controller/v1/auto.controller.js

+ 3 - 3
controller/v1/auto.controller.js

@@ -121,7 +121,7 @@ exports.reminderKeberatan = handleError(async (req, res) => {
         new Date(),
         'days'
       )
-      if (dayLeft > 0 && dayLeft < 7) {
+      if (dayLeft > 0 && dayLeft <= 7) {
         try {
           await notifWA(TEMPLATE_REMINDER, [
             {
@@ -186,7 +186,7 @@ exports.reminderBanding = handleError(async (req, res) => {
         new Date(),
         'days'
       )
-      if (dayLeft > 0 && dayLeft < 7) {
+      if (dayLeft > 0 && dayLeft <= 7) {
         try {
           await notifWA(TEMPLATE_REMINDER, [
             {
@@ -357,7 +357,7 @@ exports.berakhirSanksi = handleError(async (req, res) => {
       new Date(),
       'days'
     )
-    if (dayLeft > 0 && dayLeft < 7) {
+    if (dayLeft > 0 && dayLeft <= 7) {
       try {
         await notifWA(TEMPLATE_REMINDER2, [
           {