Fix linter issues
This commit is contained in:
		| @@ -10,11 +10,11 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| type FilterTransactionsRequest struct { | type FilterTransactionsRequest struct { | ||||||
| 	CategoryID string    `json:"category_id"` | 	CategoryID string    `json:"categoryId"` | ||||||
| 	PayeeID    string    `json:"payee_id"` | 	PayeeID    string    `json:"payeeId"` | ||||||
| 	AccountID  string    `json:"account_id"` | 	AccountID  string    `json:"accountId"` | ||||||
| 	FromDate   time.Time `json:"from_date"` | 	FromDate   time.Time `json:"fromDate"` | ||||||
| 	ToDate     time.Time `json:"to_date"` | 	ToDate     time.Time `json:"toDate"` | ||||||
| } | } | ||||||
|  |  | ||||||
| func (h *Handler) filteredTransactions(c echo.Context) error { | func (h *Handler) filteredTransactions(c echo.Context) error { | ||||||
| @@ -58,7 +58,7 @@ func parseEmptyUUID(value string) (uuid.NullUUID, bool) { | |||||||
| 		return uuid.NullUUID{}, false | 		return uuid.NullUUID{}, false | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	return uuid.NullUUID{val, true}, true | 	return uuid.NullUUID{UUID: val, Valid: true}, true | ||||||
| } | } | ||||||
|  |  | ||||||
| func (h *Handler) problematicTransactions(c echo.Context) error { | func (h *Handler) problematicTransactions(c echo.Context) error { | ||||||
|   | |||||||
| @@ -93,11 +93,11 @@ export const useTransactionsStore = defineStore("budget/transactions", { | |||||||
|         async GetFilteredTransactions(accountID : string | null, categoryID : string | null, payeeID : string | null, fromDate : string, toDate : string) { |         async GetFilteredTransactions(accountID : string | null, categoryID : string | null, payeeID : string | null, fromDate : string, toDate : string) { | ||||||
|             const budgetStore = useBudgetsStore(); |             const budgetStore = useBudgetsStore(); | ||||||
|             const payload = JSON.stringify({ |             const payload = JSON.stringify({ | ||||||
|               category_id: categoryID, |               categoryId: categoryID, | ||||||
|               payee_id: payeeID, |               payeeId: payeeID, | ||||||
|               account_id: accountID, |               accountId: accountID, | ||||||
|               from_date: fromDate, |               fromDate: fromDate, | ||||||
|               to_date: toDate, |               toDate: toDate, | ||||||
|             }); |             }); | ||||||
|             const result = await POST("/budget/" + budgetStore.CurrentBudgetID + "/filtered-transactions", payload); |             const result = await POST("/budget/" + budgetStore.CurrentBudgetID + "/filtered-transactions", payload); | ||||||
|             const response = await result.json(); |             const response = await result.json(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user