update: change ads check in createion to check for from yesterday
This commit is contained in:
@@ -179,7 +179,7 @@ export class AdsService {
|
|||||||
throw new BadRequestException(AdsMessage.START_DATE_MUST_BE_BEFORE_END_DATE);
|
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);
|
throw new BadRequestException(AdsMessage.START_DATE_MUST_BE_AFTER_NOW);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user