separated parsing from api.getUser(), logging folreqs

This commit is contained in:
ari melody 2024-07-01 07:39:57 +01:00
parent 891aa09467
commit 6c11c67eb4
Signed by: ari
GPG key ID: CF99829C92678188
4 changed files with 10 additions and 14 deletions

View file

@ -12,13 +12,14 @@
let new_client = new Client();
new_client.load();
return new_client.getUser().then(user => {
return new_client.getClientUser().then(user => {
if (!user) {
client.set(new_client);
return resolve();
}
new_client.user = user;
client.set(new_client);
client.user
return resolve();
});
});

View file

@ -23,7 +23,7 @@
return c;
});
get(client).getUser().then(user => {
get(client).getClientUser().then(user => {
if (user) client.update(client => {
client.user = user
return client;