diff options
author | 2022-09-17 19:12:12 +0200 | |
---|---|---|
committer | 2022-09-17 19:12:12 +0200 | |
commit | c1585d5f8a57256a330aae4a322468aaccf9d3fa (patch) | |
tree | f31dec55572d068f1bee8615f5ccda7454d762f9 /internal/db | |
parent | [bugfix] Fix emojis, attachments, and mentions not being serialized correctly... (diff) | |
download | gotosocial-c1585d5f8a57256a330aae4a322468aaccf9d3fa.tar.xz |
[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
Diffstat (limited to 'internal/db')
-rw-r--r-- | internal/db/bundb/domain.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/bundb/domain.go b/internal/db/bundb/domain.go index 4cad75e4d..0d67837d7 100644 --- a/internal/db/bundb/domain.go +++ b/internal/db/bundb/domain.go @@ -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) } |