mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-04 16:53:17 -06:00
remove count column
This commit is contained in:
parent
10945e7809
commit
56a7ce76ee
7 changed files with 143 additions and 3 deletions
|
|
@ -2160,6 +2160,11 @@ func (c *Converter) DomainPermSubToAPIDomainPermSub(
|
|||
successfullyFetchedAt = util.FormatISO8601(d.SuccessfullyFetchedAt)
|
||||
}
|
||||
|
||||
count, err := c.state.DB.CountDomainPermissionSubscriptionPerms(ctx, d.ID)
|
||||
if err != nil {
|
||||
return nil, gtserror.Newf("error counting perm sub perms: %w", err)
|
||||
}
|
||||
|
||||
return &apimodel.DomainPermissionSubscription{
|
||||
ID: d.ID,
|
||||
Priority: d.Priority,
|
||||
|
|
@ -2176,6 +2181,7 @@ func (c *Converter) DomainPermSubToAPIDomainPermSub(
|
|||
FetchedAt: fetchedAt,
|
||||
SuccessfullyFetchedAt: successfullyFetchedAt,
|
||||
Error: d.Error,
|
||||
Count: uint64(count),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue