diff options
Diffstat (limited to 'internal/cache')
| -rw-r--r-- | internal/cache/db.go | 2 | ||||
| -rw-r--r-- | internal/cache/size.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/internal/cache/db.go b/internal/cache/db.go index ac16e26c5..78cc01e06 100644 --- a/internal/cache/db.go +++ b/internal/cache/db.go @@ -1155,7 +1155,7 @@ func (c *Caches) initNotification() { c.DB.Notification.Init(structr.CacheConfig[*gtsmodel.Notification]{ Indices: []structr.IndexConfig{ {Fields: "ID"}, - {Fields: "NotificationType,TargetAccountID,OriginAccountID,StatusID", AllowZero: true}, + {Fields: "NotificationType,TargetAccountID,OriginAccountID,StatusOrEditID", AllowZero: true}, }, MaxSize: cap, IgnoreErr: ignoreErrors, diff --git a/internal/cache/size.go b/internal/cache/size.go index b08a62a85..7898f9dfd 100644 --- a/internal/cache/size.go +++ b/internal/cache/size.go @@ -573,7 +573,7 @@ func sizeofNotification() uintptr { CreatedAt: exampleTime, TargetAccountID: exampleID, OriginAccountID: exampleID, - StatusID: exampleID, + StatusOrEditID: exampleID, Read: func() *bool { ok := false; return &ok }(), })) } |
