Skip to content

Commit

Permalink
component fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alzpeta committed Sep 6, 2024
1 parent b68ecb3 commit 6ca8a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oarepo_doi/services/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def update(self, identity, data=None, record=None, **kwargs):

def publish(self, identity, data=None, record=None, **kwargs):
if self.mode == "AUTOMATIC":
self.credentials(record['parent']['communities']['default'])
self.credentials(record.parent['communities']['default'])
create_doi(self, record, data, "publish")
if self.mode == "AUTOMATIC_DRAFT":
self.credentials(record['parent']['communities']['default'])
self.credentials(record.parent['communities']['default'])
edit_doi(self, record, "publish")

0 comments on commit 6ca8a22

Please sign in to comment.