Extract Month class

This commit is contained in:
2022-04-06 21:41:55 +00:00
parent 01c407d4f1
commit 54e591bc5e
5 changed files with 97 additions and 37 deletions

View File

@ -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)