Fix app updating

Closes: #212
This commit is contained in:
Denis Makogon
2017-08-09 14:41:23 +03:00
parent a7ed30a55f
commit 7a36e424d1

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
})