Extract Month class
This commit is contained in:
@ -44,7 +44,7 @@ func (h *Handler) setCategoryAssignment(c *gin.Context) {
|
||||
|
||||
updateArgs := postgres.UpdateAssignmentParams{
|
||||
CategoryID: categoryUUID,
|
||||
Date: date,
|
||||
Date: date.FirstOfMonth(),
|
||||
Amount: amount,
|
||||
}
|
||||
err = h.Service.UpdateAssignment(c.Request.Context(), updateArgs)
|
||||
|
Reference in New Issue
Block a user