From 0cc6614cd830a5f03262e0a176e8074b5a4fe716 Mon Sep 17 00:00:00 2001 From: Claus-Peter Huebner Date: Tue, 7 Nov 2023 21:38:22 +0100 Subject: [PATCH] remove unused function --- backend/src/seeds/community/index.ts | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/backend/src/seeds/community/index.ts b/backend/src/seeds/community/index.ts index e3b420d00..84542e002 100644 --- a/backend/src/seeds/community/index.ts +++ b/backend/src/seeds/community/index.ts @@ -33,25 +33,3 @@ export async function writeHomeCommunityEntry(): Promise { throw new Error(`Seeding: Error writing HomeCommunity-Entry`) // : ${err}`) } } - -export async function createHomeCommunity(): Promise { - let homeCom: DbCommunity - try { - return await DbCommunity.findOneOrFail({ - where: [{ foreign: false }], - }) - } catch (err) { - homeCom = DbCommunity.create() - homeCom.foreign = false - homeCom.url = 'http://localhost/api' - homeCom.publicKey = Buffer.from('publicKey-HomeCommunity') - homeCom.privateKey = Buffer.from('privateKey-HomeCommunity') - homeCom.communityUuid = 'HomeCom-UUID' - homeCom.authenticatedAt = new Date() - homeCom.name = 'HomeCommunity-name' - homeCom.description = 'HomeCommunity-description' - homeCom.creationDate = new Date() - await DbCommunity.insert(homeCom) - return homeCom - } -}