diff options
Diffstat (limited to 'src/lib/server/services/grocery-actions.ts')
| -rw-r--r-- | src/lib/server/services/grocery-actions.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/server/services/grocery-actions.ts b/src/lib/server/services/grocery-actions.ts index c8974e9..2138f2d 100644 --- a/src/lib/server/services/grocery-actions.ts +++ b/src/lib/server/services/grocery-actions.ts @@ -17,11 +17,7 @@ export async function toggleGroceryAction(request: Request) { export type DeleteRowResult = ActionFailure<{ error: string }> | { success: boolean; type?: 'delete' }; -/** - * Shared 'delete a row by its id form field' action, used by the category - * list and the reference list (both submit one form whose buttons carry the - * row id). - */ +/** Shared 'delete by id form field' action for category and reference lists. */ export async function deleteByIdAction( request: Request, deleteFn: (id: number) => Promise<unknown>, |
