fixes + db changes

This commit is contained in:
tsmethurst 2021-09-10 13:30:20 +02:00
commit d74e5cde57
16 changed files with 401 additions and 78 deletions

View file

@ -60,7 +60,7 @@ func (p *processor) DomainBlockDelete(ctx context.Context, account *gtsmodel.Acc
}, i); err == nil {
i.SuspendedAt = time.Time{}
i.DomainBlockID = ""
if err := p.db.UpdateByID(ctx, i.ID, i); err != nil {
if err := p.db.UpdateByPrimaryKey(ctx, i); err != nil {
return nil, gtserror.NewErrorInternalError(fmt.Errorf("couldn't update database entry for instance %s: %s", domainBlock.Domain, err))
}
}