From 044ff3358c204fcb239e565638f2b0a18a6048c6 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 14 Oct 2025 14:57:17 +0200 Subject: [PATCH] remove not used enum value --- database/src/enum/CommunityHandshakeStateType.ts | 1 - database/src/queries/communityHandshakes.test.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/database/src/enum/CommunityHandshakeStateType.ts b/database/src/enum/CommunityHandshakeStateType.ts index 8b811da61..e41913cc0 100644 --- a/database/src/enum/CommunityHandshakeStateType.ts +++ b/database/src/enum/CommunityHandshakeStateType.ts @@ -2,7 +2,6 @@ export enum CommunityHandshakeStateType { START_COMMUNITY_AUTHENTICATION = 'START_COMMUNITY_AUTHENTICATION', START_OPEN_CONNECTION_CALLBACK = 'START_OPEN_CONNECTION_CALLBACK', START_AUTHENTICATION = 'START_AUTHENTICATION', - OPEN_CONNECTION_CALLBACK = 'OPEN_CONNECTION_CALLBACK', SUCCESS = 'SUCCESS', FAILED = 'FAILED', diff --git a/database/src/queries/communityHandshakes.test.ts b/database/src/queries/communityHandshakes.test.ts index 32eb31c4b..372fb1293 100644 --- a/database/src/queries/communityHandshakes.test.ts +++ b/database/src/queries/communityHandshakes.test.ts @@ -56,7 +56,7 @@ describe('communityHandshakes', () => { await createCommunityHandshakeState(publicKey.asBuffer()) const communityHandshakeState = await findPendingCommunityHandshake(publicKey, '1_0') expect(communityHandshakeState).toBeDefined() - communityHandshakeState!.status = CommunityHandshakeStateType.OPEN_CONNECTION_CALLBACK + communityHandshakeState!.status = CommunityHandshakeStateType.START_OPEN_CONNECTION_CALLBACK await communityHandshakeState!.save() const communityHandshakeState2 = await findPendingCommunityHandshake(publicKey, '1_0') const states = await DbCommunityHandshakeState.find() @@ -64,7 +64,7 @@ describe('communityHandshakes', () => { expect(communityHandshakeState2).toMatchObject({ publicKey: publicKey.asBuffer(), apiVersion: '1_0', - status: CommunityHandshakeStateType.OPEN_CONNECTION_CALLBACK, + status: CommunityHandshakeStateType.START_OPEN_CONNECTION_CALLBACK, handshakeId: 1 }) })