maybe drone is better now
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2021-05-18 01:02:42 +02:00
parent 0bba2d2faf
commit e430c0a08e
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 4 additions and 11 deletions

View File

@ -18,6 +18,7 @@ steps:
from_secret: DOCKER_USERNAME from_secret: DOCKER_USERNAME
password: password:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
context: ./HanyadikHetVan
tags: tags:
- latest - latest
- ${DRONE_BUILD_NUMBER} - ${DRONE_BUILD_NUMBER}

View File

@ -22,8 +22,8 @@ namespace HanyadikHetVan.Controllers
{ {
try try
{ {
await _weeklytimespanService.AddWeeklyTimeSpan(weeklytimespan); var obj = await _weeklytimespanService.AddWeeklyTimeSpan(weeklytimespan);
return true; return obj;
} }
catch (Exception) catch (Exception)
{ {
@ -34,15 +34,7 @@ namespace HanyadikHetVan.Controllers
[HttpDelete("{weeklyTimeSpanId}")] [HttpDelete("{weeklyTimeSpanId}")]
public bool DeleteWeeklyTimeSpan(int weeklyTimeSpanId) public bool DeleteWeeklyTimeSpan(int weeklyTimeSpanId)
{ {
try return _weeklytimespanService.DeleteWeeklyTimeSpan(weeklyTimeSpanId);
{
_weeklytimespanService.DeleteWeeklyTimeSpan(weeklyTimeSpanId);
return true;
}
catch (Exception)
{
return false;
}
} }
[HttpPut] [HttpPut]
public bool UpdateWeeklyTimeSpan([FromBody] WeeklyTimeSpan weeklytimespan) public bool UpdateWeeklyTimeSpan([FromBody] WeeklyTimeSpan weeklytimespan)