fix: check if profile existe befort render profile page

This commit is contained in:
2023-12-21 00:05:54 +01:00
parent 0626faae7f
commit 8e0514514b
3 changed files with 11 additions and 2 deletions

View File

@ -28,7 +28,8 @@ class Profiles
async getProfile(user_id)
{
let profile = new Profile(this.client);
await profile.init(user_id);
if (await profile.init(user_id))
return null;
return profile;
}