Merge branch 'feature/linking-accounts' of https://github.com/peakshift/makers.bolt.fun into feature/linking-accounts

This commit is contained in:
MTG2000
2022-08-19 20:29:34 +03:00

View File

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