Add nilaway and rework test setup

This commit is contained in:
eikendev 2025-02-16 00:15:50 +01:00
parent e657884326
commit b0699da1e9
No known key found for this signature in database
15 changed files with 309 additions and 184 deletions

View file

@ -41,6 +41,11 @@ func getApplication(ctx *gin.Context, db Database) (*model.Application, error) {
if success := SuccessOrAbort(ctx, http.StatusNotFound, err); !success {
return nil, err
}
if application == nil {
err := errors.New("application not found")
ctx.AbortWithError(http.StatusNotFound, err)
return nil, err
}
return application, nil
}