@openneuro/server 4.37.0-alpha.0 → 4.37.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/server",
|
|
3
|
-
"version": "4.37.0-alpha.
|
|
3
|
+
"version": "4.37.0-alpha.1",
|
|
4
4
|
"description": "Core service for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/server.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@elastic/elasticsearch": "8.13.1",
|
|
22
22
|
"@graphql-tools/schema": "^10.0.0",
|
|
23
23
|
"@keyv/redis": "^4.5.0",
|
|
24
|
-
"@openneuro/search": "^4.37.0-alpha.
|
|
24
|
+
"@openneuro/search": "^4.37.0-alpha.1",
|
|
25
25
|
"@sentry/node": "^8.25.0",
|
|
26
26
|
"@sentry/profiling-node": "^8.25.0",
|
|
27
27
|
"base64url": "^3.0.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "0ecf2dc232cfec35e600ac2284764c9762342e52"
|
|
92
92
|
}
|
|
@@ -30,7 +30,7 @@ export const brainInitiative = async (
|
|
|
30
30
|
return await cache.get(async () => {
|
|
31
31
|
try {
|
|
32
32
|
const metadata = await Metadata.findOne({ datasetId: dataset.id })
|
|
33
|
-
if (metadata
|
|
33
|
+
if (metadata?.grantFunderName?.match(brainInitiativeMatch)) {
|
|
34
34
|
return true
|
|
35
35
|
} else {
|
|
36
36
|
// Fetch snapshot if metadata didn't match
|
package/src/queues/queues.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function setupQueues() {
|
|
|
14
14
|
EQueueDeliveryModel.POINT_TO_POINT,
|
|
15
15
|
(err) => {
|
|
16
16
|
// The queue may already exist, don't log that error
|
|
17
|
-
if (err !== "QueueQueueExistsError") {
|
|
17
|
+
if (err && err.name !== "QueueQueueExistsError") {
|
|
18
18
|
Sentry.captureException(err)
|
|
19
19
|
}
|
|
20
20
|
},
|