Update LeaderBoard.vue
This commit is contained in:
@@ -170,13 +170,14 @@ const userCache = ref({});
|
||||
async function loadUserProfile(email) {
|
||||
if (userCache.value[email]) return userCache.value[email];
|
||||
|
||||
const profile = await frappe.call({
|
||||
method: "frappe.client.get",
|
||||
args: {
|
||||
doctype: "User",
|
||||
name: email
|
||||
}
|
||||
});
|
||||
const profile = createResource({
|
||||
url: 'frappe.client.get',
|
||||
params: {
|
||||
doctype: 'User',
|
||||
name: email
|
||||
},
|
||||
auto: true
|
||||
})
|
||||
|
||||
userCache.value[email] = {
|
||||
full_name: profile.message.full_name,
|
||||
|
||||
Reference in New Issue
Block a user