Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getProfile시 isfollow false로 오는 에러 #24

Open
haron-lee opened this issue Jun 26, 2024 · 0 comments
Open

getProfile시 isfollow false로 오는 에러 #24

haron-lee opened this issue Jun 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@haron-lee
Copy link
Contributor

user.readOnlyDataisfollow: false값을 가져오게 되면서 계속해서 isfollow값이 false로 옴

해결

user id를 follower배열에서 찾아서 결과값을 리턴해주는 getUserByAccountNameResponse를 사용

	async getUserByAccountNameResponse(
		accountname: string,
		currUserId: string,
	): Promise<ProfileResponse> {
		const user = await this.getUserByAccountName(accountname);
		return {
			...user.readOnlyData,
			isfollow: getIsFollow(user, currUserId),
		};
	

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants