prettier fix
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
'use server';
|
||||
|
||||
import { getLogger } from '@kit/shared/logger';
|
||||
|
||||
import {
|
||||
getOpenResponses,
|
||||
getOtherResponses,
|
||||
getUserDoneResponses,
|
||||
getUserInProgressResponses,
|
||||
} from '@kit/doctor/services/doctor-analysis.service';
|
||||
import { getLogger } from '@kit/shared/logger';
|
||||
|
||||
import { doctorAction } from '../utils/doctor-action';
|
||||
|
||||
export const getUserDoneResponsesAction = doctorAction(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import z from 'zod';
|
||||
|
||||
import { Database } from '@kit/supabase/database';
|
||||
import z from 'zod';
|
||||
|
||||
export const doctorJobSelectSchema = z.object({
|
||||
userId: z.uuid(),
|
||||
|
||||
@@ -9,9 +9,7 @@ import { Database } from '@kit/supabase/database';
|
||||
*/
|
||||
export async function isDoctor(client: SupabaseClient<Database>) {
|
||||
try {
|
||||
const { data, error } = await client
|
||||
.schema('medreport')
|
||||
.rpc('is_doctor');
|
||||
const { data, error } = await client.schema('medreport').rpc('is_doctor');
|
||||
|
||||
if (error) {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user