diff --git a/src/modules/recent-food/infrastructure/recentFoodRepository.ts b/src/modules/recent-food/infrastructure/recentFoodRepository.ts index 9fa6c851..0cab28d5 100644 --- a/src/modules/recent-food/infrastructure/recentFoodRepository.ts +++ b/src/modules/recent-food/infrastructure/recentFoodRepository.ts @@ -20,7 +20,7 @@ export function createRecentFoodRepository(): RecentFoodRepository { } } -export async function fetchByUserTypeAndReferenceId( +async function fetchByUserTypeAndReferenceId( userId: User['uuid'], type: RecentFood['type'], referenceId: number, @@ -37,7 +37,7 @@ export async function fetchByUserTypeAndReferenceId( } } -export async function fetchUserRecentFoodsAsTemplates( +async function fetchUserRecentFoodsAsTemplates( userId: User['uuid'], search: string, opts?: { limit?: number }, @@ -54,7 +54,7 @@ export async function fetchUserRecentFoodsAsTemplates( } } -export async function insert(input: NewRecentFood): Promise { +async function insert(input: NewRecentFood): Promise { try { return await supabaseGateway.insert(input) } catch (error) { @@ -63,7 +63,7 @@ export async function insert(input: NewRecentFood): Promise { } } -export async function update( +async function update( id: number, input: NewRecentFood, ): Promise { @@ -75,7 +75,7 @@ export async function update( } } -export async function deleteByReference( +async function deleteByReference( userId: User['uuid'], type: RecentFood['type'], referenceId: number,