docs: update texts

This commit is contained in:
Riccardo Senica
2025-01-23 20:37:22 +00:00
parent fc75d5da15
commit cdef3ec86a
2 changed files with 3 additions and 3 deletions

View File

@@ -17,10 +17,10 @@ A personal expenses and day log tracking API that works with Siri Shortcuts. Usi
#### Add an Expense #### 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 #### Update an Expense

View File

@@ -52,7 +52,7 @@ export async function diaryCommand(
const formatted = formatResponse(expense); const formatted = formatResponse(expense);
return { return {
success: true, 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 data: formatted
}; };
} }