|
|
@ -71,7 +71,7 @@ public class ActivityController : Controller
|
|
|
|
_logger.LogError("Athlete with id {id} not found", activityDto.AthleteId);
|
|
|
|
_logger.LogError("Athlete with id {id} not found", activityDto.AthleteId);
|
|
|
|
return NotFound($"Athlete with id {activityDto.AthleteId} not found");
|
|
|
|
return NotFound($"Athlete with id {activityDto.AthleteId} not found");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (activityDto.DataSourceId != null && user.DataSource.Id != activityDto.DataSourceId)
|
|
|
|
if (activityDto.DataSourceId != null && user.DataSource?.Id != activityDto.DataSourceId)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_logger.LogError("DataSource with id {id} not found for this user", activityDto.DataSourceId);
|
|
|
|
_logger.LogError("DataSource with id {id} not found for this user", activityDto.DataSourceId);
|
|
|
|
return NotFound($"DataSource with id {activityDto.DataSourceId} not found");
|
|
|
|
return NotFound($"DataSource with id {activityDto.DataSourceId} not found");
|
|
|
|