Fix bugs with switching accounts

This commit is contained in:
Natsumi
2025-08-27 11:45:37 +12:00
parent 23053c1339
commit d92818edea
3 changed files with 20 additions and 7 deletions

View File

@@ -76,18 +76,19 @@ const friendReq = {
},
/**
* @param {{ userId: string }} params
* @returns {Promise<{json: any, params: { userId: string }}>}
* currentUserId for own reference
* @param {{ userId: string, currentUserId: string }} params
* @returns {Promise<{json: any, params: { userId: string, currentUserId: string }}>}
*/
getFriendStatus(params) {
return request(`user/${params.userId}/friendStatus`, {
method: 'GET'
}).then((json) => {
console.log('getFriendStatus', json);
const args = {
json,
params
};
console.log('getFriendStatus', args);
return args;
});
},