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
password:
from_secret: DOCKER_PASSWORD
context: ./HanyadikHetVan
tags:
- latest
- ${DRONE_BUILD_NUMBER}

View File

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