Commit f7ee1b3c authored by nanahira's avatar nanahira

accept ad when link present

parent 0f49e7d0
Pipeline #17960 passed with stages
in 1 minute and 1 second
......@@ -45,6 +45,9 @@ export class AdService extends CrudService(Ad) {
if (!ad) {
throw new BlankReturnMessageDto(404, 'Ad not found').toException();
}
if (!ad.link) {
return '';
}
await this.repo.increment({ id }, 'clickCount', 1);
return ad.link;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment