Skip to content

Commit

Permalink
fix(passport): use correct db session removal function
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13-machine-user committed Jan 25, 2022
1 parent 0c32f71 commit e88e74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fence/resources/ga4gh/passports.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ def get_gen3_usernames_for_passport_from_cache(passport, db_session=None):
)
return user_ids_from_passports
else:
# expired, so remove it
db_session.remove(cached_passport)
# expired, so delete it
db_session.delete(cached_passport)
db_session.commit()

return user_ids_from_passports
Expand Down

0 comments on commit e88e74f

Please sign in to comment.