mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
fixes + db changes (#204)
* fixes + db changes * make duration more lenient
This commit is contained in:
@ -147,7 +147,7 @@ func (p *processor) InstancePatch(ctx context.Context, form *apimodel.InstanceSe
|
||||
}
|
||||
}
|
||||
|
||||
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("db error updating instance %s: %s", p.config.Host, err))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user