[performance] remove last of relational queries to instead rely on caches (#2091)

This commit is contained in:
kim
2023-08-10 15:08:41 +01:00
committed by GitHub
parent 9770d54237
commit 91cbcd589e
19 changed files with 507 additions and 107 deletions

View File

@@ -61,7 +61,7 @@ func (p *Processor) AppCreate(ctx context.Context, authed *oauth.Auth, form *api
}
// chuck it in the db
if err := p.state.DB.Put(ctx, app); err != nil {
if err := p.state.DB.PutApplication(ctx, app); err != nil {
return nil, gtserror.NewErrorInternalError(err)
}