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 }; }