Fix on the inserting of images.

This commit is contained in:
Sébastien André
2020-05-27 14:15:38 +02:00
parent 2754a9229b
commit bb55612812
7 changed files with 7 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ namespace skydiveLogs_api.Controllers
[EnableCors]
public void Post([FromBody] ImageReq value)
{
_imageService.AddNewImage(_mapper.Map<Image>(value));
_imageService.AddNewImage(_mapper.Map<Image>(value), ConnectedUser);
}
// PUT: api/Image/5