From d417bb41e8e594ed196b6a6760ae83da6c17576e Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 22 May 2023 12:27:02 +0200 Subject: [PATCH 1/2] refactor(backend): remove to do after creating issue --- backend/src/graphql/resolver/TransactionResolver.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/src/graphql/resolver/TransactionResolver.ts b/backend/src/graphql/resolver/TransactionResolver.ts index 04f636b5a..40e9ec2dd 100644 --- a/backend/src/graphql/resolver/TransactionResolver.ts +++ b/backend/src/graphql/resolver/TransactionResolver.ts @@ -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 From 8c5e10415b458205ec8cbe98c6776ec49bf779f0 Mon Sep 17 00:00:00 2001 From: Claus-Peter Huebner Date: Thu, 25 May 2023 11:53:33 +0200 Subject: [PATCH 2/2] remove export from write-functions --- dht-node/src/dht_node/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dht-node/src/dht_node/index.ts b/dht-node/src/dht_node/index.ts index 4fd0bd733..36291904a 100644 --- a/dht-node/src/dht_node/index.ts +++ b/dht-node/src/dht_node/index.ts @@ -186,7 +186,7 @@ export const startDHT = async (topic: string): Promise => { } } -export async function writeFederatedHomeCommunityEntries(pubKey: string): Promise { +async function writeFederatedHomeCommunityEntries(pubKey: string): Promise { 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 { +async function writeHomeCommunityEntry(pubKey: string): Promise { try { // check for existing homeCommunity entry let homeCom = await DbCommunity.findOne({