Merge pull request #214 from fnproject/issue/212

Fix app updating
This commit is contained in:
Reed Allman
2017-08-09 10:44:38 -07:00
committed by GitHub
3 changed files with 21 additions and 4 deletions

View File

@@ -206,7 +206,8 @@ func (ds *sqlStore) UpdateApp(ctx context.Context, newapp *models.App) (*models.
if n, err := res.RowsAffected(); err != nil {
return err
} else if n == 0 {
return models.ErrAppsNotFound
// inside of the transaction, we are querying for the app, so we know that it exists
return nil
}
return nil
})