(pubkey: Pubkey, admittedAt: Date, client: DatabaseClient = this.dbClient)
| 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 | } |
nothing calls this directly
no test coverage detected