mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
fix build
This commit is contained in:
parent
151dea4088
commit
8dc8aaaeb0
1 changed files with 2 additions and 2 deletions
|
@ -248,8 +248,8 @@ after_initialize do
|
|||
post.custom_fields[POLLS_CUSTOM_FIELD] = polls
|
||||
post.save_custom_fields(true)
|
||||
|
||||
# push the changes
|
||||
DiscourseBus.publish("/polls/#{post_id}", { polls: polls })
|
||||
# publish the changes
|
||||
DiscourseBus.publish("/polls/#{post.id}", { polls: polls })
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue