mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 11:36:45 +00:00
Record votedate
This commit is contained in:
parent
aa80f24ba1
commit
c056b31e13
1 changed files with 1 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ class HabitsController < ApplicationController
|
|||
def vote
|
||||
@habit = current_user.habits.find(params[:id])
|
||||
@habit.score += params[:vote].to_i
|
||||
@habit.votedate = Time.now
|
||||
|
||||
respond_to do |format|
|
||||
if @habit.save
|
||||
|
|
|
|||
Loading…
Reference in a new issue