Skip to content

Commit bdf9f2f

Browse files
committed
log ddo
1 parent 334798e commit bdf9f2f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"mocha-light": "mocha --node-env=test --config .mocharc.json --exclude \"./dist/test/integration/compute.test.js\"",
3131
"test": "npm run lint && npm run test:unit:cover && npm run test:integration:cover",
3232
"test:unit": "npm run build-tests && npm run mocha \"./dist/test/unit/**/*.test.js\"",
33-
"test:integration": "npm run build-tests && npm run mocha \"./dist/test/integration/**/*.test.js\"",
33+
"test:integration": "npm run build-tests && npm run mocha \"./dist/test/integration/**/credentials.test.js\"",
3434
"test:computeunit": "npm run build-tests && npm run mocha \"./dist/test/unit/compute.test.js\"",
3535
"test:computeintegration": "npm run build-tests && npm run mocha \"./dist/test/integration/compute.test.js\"",
3636
"test:indexer": "npm run build-tests && npm run mocha \"./dist/test/integration/indexer.test.js\"",

src/components/Indexer/processors/MetadataEventProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ export class MetadataEventProcessor extends BaseEventProcessor {
9999
if (authorizedPublishers.length > 0) {
100100
// if is not there, do not index
101101
const authorized: string[] = authorizedPublishers.filter((address) =>
102-
// do a case insensitive exact match
103-
address.toLowerCase() === owner.toLowerCase()
102+
// do a case insensitive search
103+
address.toLowerCase().includes(owner.toLowerCase())
104104
)
105105
if (!authorized.length) {
106106
INDEXER_LOGGER.error(

src/test/integration/credentials.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ describe('[Credentials Flow] - Should run a complete node flow.', () => {
554554
EVENTS.METADATA_CREATED,
555555
DEFAULT_TEST_TIMEOUT
556556
)
557+
558+
console.log('ddo', ddo)
559+
console.log('wasTimeout', wasTimeout)
557560
assert(ddo === null && wasTimeout === true, 'DDO should NOT have been indexed')
558561
})
559562

0 commit comments

Comments
 (0)