From a85f5285686285ee464342e31e902a0a59b2d256 Mon Sep 17 00:00:00 2001 From: mihaisc Date: Tue, 15 Nov 2022 15:32:46 +0200 Subject: [PATCH] add custom identifier --- src/@utils/aquarius.ts | 1 + src/components/Publish/index.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/@utils/aquarius.ts b/src/@utils/aquarius.ts index 111851aaa..8ad67fb5f 100644 --- a/src/@utils/aquarius.ts +++ b/src/@utils/aquarius.ts @@ -57,6 +57,7 @@ export function generateBaseQuery( ? getFilterTerm('chainId', baseQueryParams.chainIds) : '', getFilterTerm('_index', 'aquarius'), + getFilterTerm('customIdentifier.keyword', 'myCustomIdentifier'), ...(baseQueryParams.ignorePurgatory ? '' : [getFilterTerm('purgatory.state', false)]), diff --git a/src/components/Publish/index.tsx b/src/components/Publish/index.tsx index 9098e42df..7473ad4f8 100644 --- a/src/components/Publish/index.tsx +++ b/src/components/Publish/index.tsx @@ -133,6 +133,9 @@ export default function PublishPage({ erc721Address ) + // add custom identifier + Object.assign(ddo, { customIdentifier: 'myCustomIdentifier' }) + if (!ddo) throw new Error('No DDO received. Please try again.') setDdo(ddo)