remove unused function

This commit is contained in:
Claus-Peter Huebner 2023-11-07 21:38:22 +01:00
parent 63d7f754e8
commit 0cc6614cd8

View File

@ -33,25 +33,3 @@ export async function writeHomeCommunityEntry(): Promise<DbCommunity> {
throw new Error(`Seeding: Error writing HomeCommunity-Entry`) // : ${err}`)
}
}
export async function createHomeCommunity(): Promise<DbCommunity> {
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
}
}