Skip to content

Commit

Permalink
fix: connection record type was BaseRecord
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed May 18, 2021
1 parent b820ded commit 88b3a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ describe('ConnectionService', () => {

const { connectionRecord: connectionRecord } = await connectionService.createInvitation()

expect(connectionRecord.type).toBe('ConnectionRecord')
expect(connectionRecord.role).toBe(ConnectionRole.Inviter)
expect(connectionRecord.state).toBe(ConnectionState.Invited)
expect(connectionRecord.autoAcceptConnection).toBeUndefined()
Expand Down
2 changes: 1 addition & 1 deletion src/modules/connections/repository/ConnectionRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class ConnectionRecord extends BaseRecord implements ConnectionStoragePro
public autoAcceptConnection?: boolean
public tags!: ConnectionTags

public static readonly type: 'ConnectionRecord'
public static readonly type = 'ConnectionRecord'
public readonly type = ConnectionRecord.type

public constructor(props: ConnectionStorageProps) {
Expand Down

0 comments on commit 88b3a8d

Please sign in to comment.