Skip to content

Commit

Permalink
feat:messages history
Browse files Browse the repository at this point in the history
  • Loading branch information
Latiah committed Jul 21, 2024
1 parent fdde655 commit b944306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/chat-history/chatHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const {data, error}=await supabase.auth.getUser();
if(error) throw error;
const userId=data?.user?.id;
setUserId(userId);
const {data:AppointmentData, error:Error}=await supabase.from("appointment").select("*, doctor(name,image)").eq("patient_id", userId).eq("package","Messaging").eq("status", "Completed")
const {data:AppointmentData, error:Error}=await supabase.from("appointment").select("*, doctor(name,image)").eq("patient_id", userId).eq("package","Messaging")
if(Error) throw Error
if(AppointmentData){
setAppointment(AppointmentData);
Expand Down

0 comments on commit b944306

Please sign in to comment.