mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-28 11:33:33 -06:00
[bugfix] Fix domains not being unblockable, log internal server errors from API (#833)
* log internal server errors from 500 api calls * don't exec into nil dest * don't exec into nil dest * log error in router logger not api errorhandling * update logging a tad * linter
This commit is contained in:
parent
1149310673
commit
c1585d5f8a
3 changed files with 9 additions and 13 deletions
|
|
@ -107,7 +107,7 @@ func (d *domainDB) DeleteDomainBlock(ctx context.Context, domain string) db.Erro
|
|||
_, err := d.conn.NewDelete().
|
||||
Model((*gtsmodel.DomainBlock)(nil)).
|
||||
Where("domain = ?", domain).
|
||||
Exec(ctx, nil)
|
||||
Exec(ctx)
|
||||
if err != nil {
|
||||
return d.conn.ProcessError(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue