Skip to content

Commit 8421df4

Browse files
committed
update sentry to only log if dataset has datacite
1 parent 77cf22f commit 8421df4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/openneuro-server/src/datalad/contributors.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ export const contributors = async (
6767
}
6868

6969
// --- Dataset type but no contributors ---
70-
if (resourceType === "Dataset") {
70+
// Only log if a Datacite file actually exists
71+
if (dataciteData && resourceType === "Dataset") {
7172
Sentry.captureMessage(
7273
`Datacite file for ${datasetId}:${revisionShort} is Dataset type but provided no contributors.`,
7374
)

0 commit comments

Comments
 (0)