From fb7c4a11ec3e1e828af8cf28a6245a41e4ee1d5b Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Thu, 21 Jul 2022 19:29:24 +0300 Subject: [PATCH] chore: delete old files --- .../Comments/CommentsSection/comment.server.js | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/features/Posts/Components/Comments/CommentsSection/comment.server.js diff --git a/src/features/Posts/Components/Comments/CommentsSection/comment.server.js b/src/features/Posts/Components/Comments/CommentsSection/comment.server.js deleted file mode 100644 index 1a75af3..0000000 --- a/src/features/Posts/Components/Comments/CommentsSection/comment.server.js +++ /dev/null @@ -1,15 +0,0 @@ - -export async function mapPubkeysToUsers(pubkeys) { - const users = await Promise.all(pubkeys.map(pubkey => - // prisma.user.findUnique({ where: { nostrPubkey: pubkey } }) - ({ - id: 1, - name: "Mtg", - avatar: 'https://i.pravatar.cc/150?img=1', - pubkey, - }) - )) - - - return users.reduce((acc, user) => ({ ...acc, [user.pubkey]: { ...user } }), {}) -} \ No newline at end of file