Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/modules/recent-food/infrastructure/recentFoodRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function createRecentFoodRepository(): RecentFoodRepository {
}
}

export async function fetchByUserTypeAndReferenceId(
async function fetchByUserTypeAndReferenceId(
userId: User['uuid'],
type: RecentFood['type'],
referenceId: number,
Expand All @@ -37,7 +37,7 @@ export async function fetchByUserTypeAndReferenceId(
}
}

export async function fetchUserRecentFoodsAsTemplates(
async function fetchUserRecentFoodsAsTemplates(
userId: User['uuid'],
search: string,
opts?: { limit?: number },
Expand All @@ -54,7 +54,7 @@ export async function fetchUserRecentFoodsAsTemplates(
}
}

export async function insert(input: NewRecentFood): Promise<RecentFood | null> {
async function insert(input: NewRecentFood): Promise<RecentFood | null> {
try {
return await supabaseGateway.insert(input)
} catch (error) {
Expand All @@ -63,7 +63,7 @@ export async function insert(input: NewRecentFood): Promise<RecentFood | null> {
}
}

export async function update(
async function update(
id: number,
input: NewRecentFood,
): Promise<RecentFood | null> {
Expand All @@ -75,7 +75,7 @@ export async function update(
}
}

export async function deleteByReference(
async function deleteByReference(
userId: User['uuid'],
type: RecentFood['type'],
referenceId: number,
Expand Down