aboutsummaryrefslogtreecommitdiff
path: root/src/lib/server/services/grocery-actions.ts
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-09-25 09:10:31 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-09-25 09:10:31 +0200
commit760a61001edafb462ca9c7f5bc8013f31fb15a5c (patch)
tree50f906de9ddaefb7362d444937f7ff4177ee2a7a /src/lib/server/services/grocery-actions.ts
parente5e1482b1f5aea4a50de44801c81c81750042201 (diff)
Compress comments to terse single lines within line width
Diffstat (limited to 'src/lib/server/services/grocery-actions.ts')
-rw-r--r--src/lib/server/services/grocery-actions.ts6
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>,