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

Unable to fetch the actual pendingCount #39

Open
nihalsheikh opened this issue Aug 17, 2024 · 2 comments
Open

Unable to fetch the actual pendingCount #39

nihalsheikh opened this issue Aug 17, 2024 · 2 comments

Comments

@nihalsheikh
Copy link

I've been trying to get the actual count of pending appointments through StatCard count{appointments.pendingCount}, but for some reason the page is rendering only the initialCount: 0, yes I've created an appointment in appwrite and followed along with the video to every point.
image

image

image

image

Where should I console.log to check for errors???

Someone please provide me the solution for this.

@nihalsheikh
Copy link
Author

Also the Appointment Attribute Enum is this:
image

what changes do I need to make???

@Raj-G07
Copy link

Raj-G07 commented Aug 26, 2024

In appointment.actions.ts use console.log(data) in getRecentAppointmentList if it gives document: [ ], totalcount:0 , pendingcound:0 etc, then it fetching problem..
Just remove query part as it is optional , and then check appointment_data , hope it works for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants