diff --git a/desci-server/src/controllers/doi/mint.ts b/desci-server/src/controllers/doi/mint.ts index 02aa9e34..615e99a0 100644 --- a/desci-server/src/controllers/doi/mint.ts +++ b/desci-server/src/controllers/doi/mint.ts @@ -59,6 +59,11 @@ export const handleCrossrefNotificationCallback = async ( return; } + if (submission.status === DoiStatus.SUCCESS) { + new SuccessMessageResponse().send(res); + return; + } + await doiService.updateSubmission({ id: submission.id }, { notification: req.payload }); logger.info('SUBMISSION UPDATED');