mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
comment about file replacements
This commit is contained in:
parent
67d784a74a
commit
98f50919e8
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@ module.exports = ProjectEntityMongoUpdateHandler = self =
|
|||
conditions = _id:project._id
|
||||
inc = {}
|
||||
inc["#{path.mongo}.rev"] = 1
|
||||
# we need to increment the project version number for any structure change
|
||||
# currently we do not need to increment the project version number for changes that are replacements
|
||||
# but when we make switch to having immutable files the replace operation will add a new file, and
|
||||
# this will require a version increase. We will start incrementing the project version now as it does
|
||||
# no harm and will help to test it.
|
||||
inc['version'] = 1
|
||||
set = {}
|
||||
set["#{path.mongo}.created"] = new Date()
|
||||
|
|
Loading…
Reference in a new issue