MCPcopy Create free account
hub / github.com/cameri/nostream / setVanished

Method setVanished

src/repositories/user-repository.ts:71–73  ·  view source on GitHub ↗
(pubkey: Pubkey, vanished: boolean, client: DatabaseClient = this.dbClient)

Source from the content-addressed store, hash-verified

69 }
70
71 public setVanished(pubkey: Pubkey, vanished: boolean, client: DatabaseClient = this.dbClient): Promise<number> {
72 return this.upsertVanishState(pubkey, vanished, client)
73 }
74
75 private upsertVanishState(pubkey: Pubkey, isVanished: boolean, client: DatabaseClient): Promise<number> {
76 logger('upsert vanish state for %s: %o', pubkey, isVanished)

Callers

nothing calls this directly

Calls 1

upsertVanishStateMethod · 0.95

Tested by

no test coverage detected