mirror of
https://github.com/aljazceru/landscape-template.git
synced 2026-01-06 16:04:23 +01:00
Merge branch 'feature/linking-accounts' of https://github.com/peakshift/makers.bolt.fun into feature/linking-accounts
This commit is contained in:
@@ -56,9 +56,9 @@ const MyProfile = objectType({
|
||||
|
||||
t.nonNull.list.nonNull.field('walletsKeys', {
|
||||
type: "WalletKey",
|
||||
resolve: async (parent) => {
|
||||
const keys = await prisma.user.findUnique({ where: { id: parent.id } }).userKeys();
|
||||
return keys.map(k => ({ ...k, key: k.key.slice(0, 10) + '...' }))
|
||||
resolve: (parent) => {
|
||||
return prisma.user.findUnique({ where: { id: parent.id } }).userKeys();
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -238,4 +238,4 @@ module.exports = {
|
||||
// Mutations
|
||||
updateProfileDetails,
|
||||
updateUserPreferences,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user