Skip to content

Commit

Permalink
DB implementation for binding store
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Jan 16, 2025
1 parent a636eb5 commit b2fe1a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/view/services/db/driver/sql/common/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type BindingPersistence struct {

func (db *BindingPersistence) GetLongTerm(ephemeral view.Identity) (view.Identity, error) {
where, params := Where(db.ci.Cmp("ephemeral_hash", "=", ephemeral.UniqueID()))
result, err := QueryUnique[[]byte](db.readDB,
fmt.Sprintf("SELECT wallet_id FROM %s %s", db.table, where),
result, err := QueryUnique[view.Identity](db.readDB,
fmt.Sprintf("SELECT long_term_id FROM %s %s", db.table, where),
params...,
)
if err != nil {
Expand Down

0 comments on commit b2fe1a2

Please sign in to comment.