update: change ads check in createion to check for from yesterday

This commit is contained in:
mahyargdz
2025-03-01 10:13:08 +03:30
parent e65334150c
commit 6aee1a5769
+1 -1
View File
@@ -179,7 +179,7 @@ export class AdsService {
throw new BadRequestException(AdsMessage.START_DATE_MUST_BE_BEFORE_END_DATE);
}
if (dayjs(startDate).isBefore(dayjs())) {
if (dayjs(startDate).isBefore(dayjs().subtract(1, "day"))) {
throw new BadRequestException(AdsMessage.START_DATE_MUST_BE_AFTER_NOW);
}