remove export from write-functions

This commit is contained in:
Claus-Peter Huebner 2023-05-25 11:53:33 +02:00
parent 7d5b8b9b62
commit 8c5e10415b

View File

@ -186,7 +186,7 @@ export const startDHT = async (topic: string): Promise<void> => {
}
}
export async function writeFederatedHomeCommunityEntries(pubKey: string): Promise<CommunityApi[]> {
async function writeFederatedHomeCommunityEntries(pubKey: string): Promise<CommunityApi[]> {
const homeApiVersions: CommunityApi[] = Object.values(ApiVersionType).map(function (apiEnum) {
const comApi: CommunityApi = {
api: apiEnum,
@ -212,7 +212,7 @@ export async function writeFederatedHomeCommunityEntries(pubKey: string): Promis
return homeApiVersions
}
export async function writeHomeCommunityEntry(pubKey: string): Promise<void> {
async function writeHomeCommunityEntry(pubKey: string): Promise<void> {
try {
// check for existing homeCommunity entry
let homeCom = await DbCommunity.findOne({