mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Return version numbers of updates
This commit is contained in:
parent
aadce232a1
commit
5fc139db00
3 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,7 @@ module.exports = HttpController =
|
|||
formattedUpdates = for update in updates
|
||||
{
|
||||
meta: update.meta
|
||||
v: update.v
|
||||
}
|
||||
res.send JSON.stringify updates: formattedUpdates
|
||||
|
||||
|
|
|
@ -50,9 +50,11 @@ describe "Getting updates", ->
|
|||
start_ts: @to
|
||||
end_ts: @to
|
||||
user_id: @user_id
|
||||
v: 5
|
||||
}, {
|
||||
meta:
|
||||
start_ts: @to - 2 * @minutes
|
||||
end_ts: @to - 2 * @minutes
|
||||
user_id: @user_id
|
||||
v: 4
|
||||
}]
|
||||
|
|
|
@ -90,5 +90,6 @@ describe "HttpController", ->
|
|||
updates = for update in @rawUpdates
|
||||
{
|
||||
meta: @meta
|
||||
v: @v
|
||||
}
|
||||
@res.send.calledWith(JSON.stringify(updates: updates)).should.equal true
|
||||
|
|
Loading…
Reference in a new issue