add doctor feedback
This commit is contained in:
@@ -434,7 +434,9 @@ class UserAnalysesApi {
|
||||
return data;
|
||||
}
|
||||
|
||||
async getAllUserAnalysisResponses(): Promise<
|
||||
async getAllUserAnalysisResponses(
|
||||
userId?: string,
|
||||
): Promise<
|
||||
Database['medreport']['Functions']['get_latest_analysis_response_elements_for_current_user']['Returns']
|
||||
> {
|
||||
const {
|
||||
@@ -448,7 +450,7 @@ class UserAnalysesApi {
|
||||
const { data, error } = await this.client
|
||||
.schema('medreport')
|
||||
.rpc('get_latest_analysis_response_elements_for_current_user', {
|
||||
p_user_id: user.id,
|
||||
p_user_id: userId ?? user.id,
|
||||
});
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user