fix: add start date and end date of ads
This commit is contained in:
@@ -18,9 +18,11 @@ func (i *impl) Create(spec adsdomain.AdsReq) error {
|
||||
}
|
||||
|
||||
newSpec := adsdomain.Ads{
|
||||
ID: uuid.NewString(),
|
||||
ImageUrl: spec.Image,
|
||||
Url: spec.URL,
|
||||
ID: uuid.NewString(),
|
||||
ImageUrl: spec.Image,
|
||||
Url: spec.URL,
|
||||
StartDate: spec.StartDate,
|
||||
EndDate: spec.EndDate,
|
||||
}
|
||||
|
||||
return i.adsRepo.Create(newSpec)
|
||||
|
||||
Reference in New Issue
Block a user