DEV: Use save_custom_fields method instead of save in topic object
This commit is contained in:
parent
b4c8c3ceb5
commit
3d53b86986
|
@ -196,7 +196,7 @@ after_initialize do
|
||||||
value: id.to_s, keys: [DiscourseVoting::VOTES, DiscourseVoting::VOTES_ARCHIVE]).count
|
value: id.to_s, keys: [DiscourseVoting::VOTES, DiscourseVoting::VOTES_ARCHIVE]).count
|
||||||
|
|
||||||
custom_fields[DiscourseVoting::VOTE_COUNT] = count
|
custom_fields[DiscourseVoting::VOTE_COUNT] = count
|
||||||
save!
|
save_custom_fields
|
||||||
end
|
end
|
||||||
|
|
||||||
def who_voted
|
def who_voted
|
||||||
|
|
Loading…
Reference in New Issue