yazid138 il y a 2 ans
Parent
commit
6257669a56
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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, [
           {