mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Give the accumulator an invites table ptr
This commit is contained in:
parent
6fb24ad7b5
commit
cd8390fe2f
@ -28,6 +28,7 @@ type Accumulator struct {
|
||||
eventsTable *EventTable
|
||||
snapshotTable *SnapshotTable
|
||||
spacesTable *SpacesTable
|
||||
invitesTable *InvitesTable
|
||||
entityName string
|
||||
}
|
||||
|
||||
@ -38,6 +39,7 @@ func NewAccumulator(db *sqlx.DB) *Accumulator {
|
||||
eventsTable: NewEventTable(db),
|
||||
snapshotTable: NewSnapshotsTable(db),
|
||||
spacesTable: NewSpacesTable(db),
|
||||
invitesTable: NewInvitesTable(db),
|
||||
entityName: "server",
|
||||
}
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ func NewStorageWithDB(db *sqlx.DB, addPrometheusMetrics bool) *Storage {
|
||||
eventsTable: NewEventTable(db),
|
||||
snapshotTable: NewSnapshotsTable(db),
|
||||
spacesTable: NewSpacesTable(db),
|
||||
invitesTable: NewInvitesTable(db),
|
||||
entityName: "server",
|
||||
}
|
||||
|
||||
@ -94,7 +95,7 @@ func NewStorageWithDB(db *sqlx.DB, addPrometheusMetrics bool) *Storage {
|
||||
UnreadTable: NewUnreadTable(db),
|
||||
EventsTable: acc.eventsTable,
|
||||
AccountDataTable: NewAccountDataTable(db),
|
||||
InvitesTable: NewInvitesTable(db),
|
||||
InvitesTable: acc.invitesTable,
|
||||
TransactionsTable: NewTransactionsTable(db),
|
||||
DeviceDataTable: NewDeviceDataTable(db),
|
||||
ReceiptTable: NewReceiptTable(db),
|
||||
|
Loading…
x
Reference in New Issue
Block a user