mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 12:04:56 +02:00
Fix green reserve (#7951)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -83,8 +83,7 @@ class GreenClient implements DBClient {
|
||||
release (): void {}
|
||||
|
||||
async reserve (): Promise<DBClient> {
|
||||
// We do reserve of connection, if we need it.
|
||||
return createGreenDBClient(this.url, this.token, await this.connection.reserve(), this.decoder)
|
||||
return createDBClient(await this.connection.reserve())
|
||||
}
|
||||
|
||||
raw (): postgres.Sql {
|
||||
|
||||
Reference in New Issue
Block a user