Skip to content

Commit f444cb3

Browse files
committed
fix(jike-client): user profile cache
1 parent 200262b commit f444cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class JikeUser<M extends boolean = boolean> {
5454
* @param ignoreCache 不使用缓存
5555
*/
5656
async queryProfile(ignoreCache = false) {
57-
if (ignoreCache && this.#profile) return this.#profile
57+
if (!ignoreCache && this.#profile) return this.#profile
5858

5959
const result = await this.#client.apiClient.users.profile(this.#username)
6060
if (!isSuccess(result)) throwRequestFailureError(result, '查询用户信息')

0 commit comments

Comments
 (0)