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

Method upsert

src/@types/repositories.ts:53–53  ·  view source on GitHub ↗
(user: Partial<User>, client?: DatabaseClient)

Source from the content-addressed store, hash-verified

51export interface IUserRepository {
52 findByPubkey(pubkey: Pubkey, client?: DatabaseClient): Promise<User | undefined>
53 upsert(user: Partial<User>, client?: DatabaseClient): Promise<number>
54 getBalanceByPubkey(pubkey: Pubkey, client?: DatabaseClient): Promise<bigint>
55 isVanished(pubkey: Pubkey, client?: DatabaseClient): Promise<boolean>
56 setVanished(pubkey: Pubkey, vanished: boolean, client?: DatabaseClient): Promise<number>

Callers 8

createInvoiceMethod · 0.65
processNip05MetadataMethod · 0.65
executeMethod · 0.65
executeMethod · 0.65

Implementers 1

UserRepositorysrc/repositories/user-repository.ts

Calls

no outgoing calls

Tested by

no test coverage detected