From 1ef2505c030fcf5efcaeb5d888d270219b2da4dd Mon Sep 17 00:00:00 2001
From: clauspeterhuebner
Date: Fri, 5 Sep 2025 16:41:57 +0200
Subject: [PATCH] correct config core export and usage
---
backend/src/federation/authenticateCommunities.ts | 4 ++--
core/src/index.ts | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/backend/src/federation/authenticateCommunities.ts b/backend/src/federation/authenticateCommunities.ts
index 179c7e996..ad2d91469 100644
--- a/backend/src/federation/authenticateCommunities.ts
+++ b/backend/src/federation/authenticateCommunities.ts
@@ -1,7 +1,7 @@
import { CommunityLoggingView, Community as DbCommunity, FederatedCommunity as DbFederatedCommunity, FederatedCommunityLoggingView, getHomeCommunity } from 'database'
import { validate as validateUUID, version as versionUUID } from 'uuid'
import { randombytes_random } from 'sodium-native'
-import { CONFIG } from '@/config'
+import { CONFIG as CONFIG_CORE } from 'core'
import { AuthenticationClient as V1_0_AuthenticationClient } from '@/federation/client/1_0/AuthenticationClient'
import { ensureUrlEndsWithSlash } from 'core'
@@ -27,7 +27,7 @@ export async function startCommunityAuthentication(
methodLogger.debug('homeComA', new CommunityLoggingView(homeComA!))
const homeFedComA = await DbFederatedCommunity.findOneByOrFail({
foreign: false,
- apiVersion: CONFIG.FEDERATION_BACKEND_SEND_ON_API,
+ apiVersion: CONFIG_CORE.FEDERATION_BACKEND_SEND_ON_API,
})
methodLogger.debug('homeFedComA', new FederatedCommunityLoggingView(homeFedComA))
const comB = await DbCommunity.findOneByOrFail({ publicKey: fedComB.publicKey })
diff --git a/core/src/index.ts b/core/src/index.ts
index 85042ef0b..a355bb9bd 100644
--- a/core/src/index.ts
+++ b/core/src/index.ts
@@ -21,3 +21,5 @@ export * from './graphql/model/EncryptedTransferArgs'
export * from './util/calculateSenderBalance'
export * from './util/utilities'
export * from './validation/user'
+export * from './config/index'
+