Skip to content

Commit 4418239

Browse files
committed
fix(lift embargo): removing pid reserving
* removing the manager method as it does not change anything (if DOI was not already on the record, it won't be created here)
1 parent f3d7a50 commit 4418239

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

invenio_rdm_records/services/services.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ def lift_embargo(self, identity, _id, uow=None):
143143
"lift_embargo", identity, draft=draft, record=record, uow=uow
144144
)
145145

146-
self._pids.pid_manager.create_and_reserve(record)
147146
uow.register(RecordCommitOp(record, indexer=self.indexer))
148147
uow.register(TaskOp(register_or_update_pid, record["id"], "doi", parent=False))
149148
# If the record was previously public it will still keep the parent PID

0 commit comments

Comments
 (0)