Merge pull request #2121 from flant/ent-postgres

feat: Add ent-based postgres storage
This commit is contained in:
Maksim Nabokikh
2021-07-08 10:49:13 +04:00
committed by GitHub
15 changed files with 421 additions and 20 deletions

View File

@@ -55,7 +55,7 @@ func (d *Database) DeleteOfflineSessions(userID, connID string) error {
func (d *Database) UpdateOfflineSessions(userID string, connID string, updater func(s storage.OfflineSessions) (storage.OfflineSessions, error)) error {
id := offlineSessionID(userID, connID, d.hasher)
tx, err := d.client.Tx(context.TODO())
tx, err := d.BeginTx(context.TODO())
if err != nil {
return convertDBError("update offline session tx: %w", err)
}