Merge remote-tracking branch 'origin/2946-feature-x-com-3-introduce-business-communities' into 2956-feature-x-com-4-introduce-public-community-info-handshake

This commit is contained in:
Claus-Peter Huebner 2023-05-25 22:03:29 +02:00
commit 34d206080b
2 changed files with 2 additions and 4 deletions

View File

@ -322,8 +322,6 @@ export class TransactionResolver {
throw new LogError('Amount to send must be positive', amount)
}
// TODO this is subject to replay attacks
// --- WHY?
const senderUser = getUser(context)
// validate recipient user

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({