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

Method admitUser

src/repositories/user-repository.ts:116–126  ·  view source on GitHub ↗
(pubkey: Pubkey, admittedAt: Date, client: DatabaseClient = this.dbClient)

Source from the content-addressed store, hash-verified

114 }
115
116 public async admitUser(pubkey: Pubkey, admittedAt: Date, client: DatabaseClient = this.dbClient): Promise<void> {
117 logger('admit user: %s at %s', pubkey, admittedAt)
118
119 try {
120 await client.raw('select admit_user(?, ?)', [toBuffer(pubkey), admittedAt.toISOString()])
121 } catch (error) {
122 logger.error('Unable to admit user. Reason:', error)
123
124 throw error
125 }
126 }
127}

Callers

nothing calls this directly

Calls 1

toBufferFunction · 0.90

Tested by

no test coverage detected