FIX: Publishing should update the public_version too
This commit is contained in:
parent
09b9b56091
commit
d4296f33ff
|
@ -30,6 +30,7 @@ class TopicPublisher
|
|||
if op.present?
|
||||
op.revisions.delete_all
|
||||
op.update_column(:version, 1)
|
||||
op.update_column(:public_version, 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ describe TopicPublisher do
|
|||
# Should delete any edits on the OP
|
||||
expect(op.revisions.size).to eq(0)
|
||||
expect(op.version).to eq(1)
|
||||
expect(op.public_version).to eq(1)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue