MCPcopy
hub / github.com/tinode/chat / SubsUpdate

Method SubsUpdate

server/db/adapter.go:141–141  ·  view source on GitHub ↗

SubsUpdate updates pasrt of a subscription object. Pass nil for fields which don't need to be updated

(topic string, user t.Uid, update map[string]any)

Source from the content-addressed store, hash-verified

139 SubsForTopic(topic string, keepDeleted bool, opts *t.QueryOpt) ([]t.Subscription, error)
140 // SubsUpdate updates pasrt of a subscription object. Pass nil for fields which don't need to be updated
141 SubsUpdate(topic string, user t.Uid, update map[string]any) error
142 // SubsDelete deletes a single subscription
143 SubsDelete(topic string, user t.Uid) error
144

Callers 10

UpdateMethod · 0.65
SaveMethod · 0.65
DeleteListMethod · 0.65
TestSubsUpdateFunction · 0.65
TestTopicShareFunction · 0.65
TestSubsUpdateFunction · 0.65
TestTopicShareFunction · 0.65
TestSubsUpdateFunction · 0.65
TestTopicShareFunction · 0.65
TestSubsUpdateFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 7

TestSubsUpdateFunction · 0.52
TestTopicShareFunction · 0.52
TestSubsUpdateFunction · 0.52
TestTopicShareFunction · 0.52
TestSubsUpdateFunction · 0.52
TestTopicShareFunction · 0.52
TestSubsUpdateFunction · 0.52