Skip to content

Commit 61ac0c3

Browse files
committed
fix: check for presence of metadata.allowlist instead of allowlist
reverts a regression introduced in commit 4f6beba where we started checking for allowlist, instead of metadata.allowlist. We should actually check for the presence of metadata.allowlist, to prevent the case where the user specifies both a CID and a json allowlist to the endpoint.
1 parent c9f9874 commit 61ac0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/MetadataController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export class MetadataController extends Controller {
131131
};
132132
}
133133

134-
if (allowList) {
134+
if (metadataValidationResult.data.allowList) {
135135
this.setStatus(409);
136136
return {
137137
success: false,

0 commit comments

Comments
 (0)