From cdef3ec86ace5b5f4b14d570fbc79ef561080498 Mon Sep 17 00:00:00 2001 From: Riccardo Senica <46839416+RiccardoSenica@users.noreply.github.com> Date: Thu, 23 Jan 2025 20:37:22 +0000 Subject: [PATCH] docs: update texts --- README.md | 4 ++-- utils/commands/diary.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 109ed6d..0454658 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,10 @@ A personal expenses and day log tracking API that works with Siri Shortcuts. Usi #### Add an Expense ``` -add -desc "description" -cost amount -cat category +add -desc "description" -cost amount -cat category -date "date" ``` -Example: `add -desc "Weekly groceries" -cost 87.50 -cat groceries` +Example: `add -desc "Weekly groceries" -cost 87.50 -cat groceries -date "2025-01-15"` #### Update an Expense diff --git a/utils/commands/diary.ts b/utils/commands/diary.ts index 1e29422..e1827d7 100644 --- a/utils/commands/diary.ts +++ b/utils/commands/diary.ts @@ -52,7 +52,7 @@ export async function diaryCommand( const formatted = formatResponse(expense); return { success: true, - message: `Added expense: ${formatted.description} (${formatted.cost.toFixed(2)}€) in category ${formatted.category}`, + message: `Added expense: ${formatted.description} (${formatted.cost.toFixed(2)}€) in category ${formatted.category} for ${formatted.createdAt.toLocaleDateString()}`, data: formatted }; }