From 60b4820a75788e25cccfedab6d4dc7d92848d1f1 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Mon, 13 May 2024 11:37:25 -0400 Subject: [PATCH] remove author from constructor in tests, fix typo with incorrect self-reference --- packages/api/src/record.ts | 2 +- packages/api/tests/record.spec.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/api/src/record.ts b/packages/api/src/record.ts index b7e8701b5..3868d11d8 100644 --- a/packages/api/src/record.ts +++ b/packages/api/src/record.ts @@ -253,7 +253,7 @@ export class Record implements RecordModel { get protocolPath() { return this.descriptor.protocolPath; } /** Role under which the author is writing the record */ - get protocolRole() { return this.protocolRole; } + get protocolRole() { return this._protocolRole; } /** Record's recipient */ get recipient() { return this.descriptor.recipient; } diff --git a/packages/api/tests/record.spec.ts b/packages/api/tests/record.spec.ts index 3ad12f4f6..f6840774f 100644 --- a/packages/api/tests/record.spec.ts +++ b/packages/api/tests/record.spec.ts @@ -300,7 +300,6 @@ describe('Record', () => { const record = new Record(testHarness.agent, { ...recordsWrite.message, encodedData : dataBlob, - author : aliceDid.uri, connectedDid : aliceDid.uri }); @@ -2011,7 +2010,6 @@ describe('Record', () => { const record = new Record(testHarness.agent, { ...recordsWrite.message, encodedData : dataBlob, - author : aliceDid.uri, connectedDid : aliceDid.uri, });