mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #2522 from overleaf/sk-set-last-updated-by-on-creation
Set lastUpdatedBy when a project is created GitOrigin-RevId: ed3a7379b538cc40932f61fc17a926e00eb2abdb
This commit is contained in:
parent
0970ddbd6c
commit
7ce322758b
2 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,7 @@ const ProjectCreationHandler = {
|
||||||
}
|
}
|
||||||
const rootFolder = new Folder({ name: 'rootFolder' })
|
const rootFolder = new Folder({ name: 'rootFolder' })
|
||||||
|
|
||||||
attributes.owner_ref = new ObjectId(owner_id)
|
attributes.lastUpdatedBy = attributes.owner_ref = new ObjectId(owner_id)
|
||||||
attributes.name = projectName
|
attributes.name = projectName
|
||||||
const project = new Project(attributes)
|
const project = new Project(attributes)
|
||||||
|
|
||||||
|
|
|
@ -110,6 +110,7 @@ describe('ProjectCreationHandler', function() {
|
||||||
}
|
}
|
||||||
project.name.should.equal(projectName)
|
project.name.should.equal(projectName)
|
||||||
expect(project.owner_ref + '').to.equal(ownerId)
|
expect(project.owner_ref + '').to.equal(ownerId)
|
||||||
|
expect(project.lastUpdatedBy + '').to.equal(ownerId)
|
||||||
done()
|
done()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue