mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
12 lines
No EOL
276 B
CoffeeScript
12 lines
No EOL
276 B
CoffeeScript
define [
|
|
"models/User"
|
|
"libs/backbone"
|
|
], (User)->
|
|
Change = Backbone.Model.extend
|
|
parse: (change) ->
|
|
return {
|
|
start_ts: change.meta.start_ts
|
|
end_ts: change.meta.end_ts
|
|
user: User.findOrBuild(change.meta.user.id, change.meta.user)
|
|
version: change.v
|
|
} |