Skip to content

Commit

Permalink
refactor: changed method imput from element to list
Browse files Browse the repository at this point in the history
 * made compatible with changes from this PR
 * closes inveniosoftware/invenio-app-rdm#2186
  • Loading branch information
TLGINO committed Jun 16, 2023
1 parent 6686b98 commit 20c9ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion invenio_rdm_records/fixtures/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def create(self, entry):
confirm_user(user)

db.session.commit()
reindex_user(user.id)
reindex_user([user.id])
except IntegrityError:
current_app.logger.info(f"skipping creation of {email}, already existing")
db.session.rollback()
2 changes: 1 addition & 1 deletion invenio_rdm_records/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ def get_or_create_user(email):
)
confirm_user(user)
db.session.commit()
reindex_user(user.id)
reindex_user([user.id])
return user

0 comments on commit 20c9ded

Please sign in to comment.