chore: delete old files

This commit is contained in:
MTG2000
2022-07-21 19:29:24 +03:00
parent 8171930825
commit fb7c4a11ec

View File

@@ -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 } }), {})
}