mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-04 23:14:27 +01:00
chore: delete old files
This commit is contained in:
@@ -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 } }), {})
|
||||
}
|
||||
Reference in New Issue
Block a user