We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77cf22f + 3ccb98e commit b5ecef0Copy full SHA for b5ecef0
packages/openneuro-server/src/datalad/contributors.ts
@@ -67,7 +67,12 @@ export const contributors = async (
67
}
68
69
// --- Dataset type but no contributors ---
70
- if (resourceType === "Dataset") {
+ // Only log if a Datacite file actually exists
71
+ if (
72
+ dataciteData?.data?.attributes &&
73
+ resourceType === "Dataset" &&
74
+ !attributes?.contributors?.length
75
+ ) {
76
Sentry.captureMessage(
77
`Datacite file for ${datasetId}:${revisionShort} is Dataset type but provided no contributors.`,
78
)
0 commit comments