mirror of
https://github.com/pushbits/server.git
synced 2025-06-05 04:02:50 +02:00
Add nilaway and rework test setup
This commit is contained in:
parent
e657884326
commit
b0699da1e9
15 changed files with 309 additions and 184 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue