(app *model.Application)
| 441 | } |
| 442 | |
| 443 | func withResolvedImage(app *model.Application) *model.Application { |
| 444 | if app.Image == "" { |
| 445 | // This must stay in sync with the isDefaultImage check in ui/src/application/Applications.tsx. |
| 446 | app.Image = "static/defaultapp.png" |
| 447 | } else { |
| 448 | app.Image = "image/" + app.Image |
| 449 | } |
| 450 | return app |
| 451 | } |
| 452 | |
| 453 | func (a *ApplicationAPI) applicationExists(token string) bool { |
| 454 | app, _ := a.DB.GetApplicationByToken(token) |
no outgoing calls
no test coverage detected
searching dependent graphs…