diff --git a/services/web/app/src/Features/Project/ProjectCreationHandler.js b/services/web/app/src/Features/Project/ProjectCreationHandler.js index 2bdb2dac33..6c9817add0 100644 --- a/services/web/app/src/Features/Project/ProjectCreationHandler.js +++ b/services/web/app/src/Features/Project/ProjectCreationHandler.js @@ -96,7 +96,7 @@ const ProjectCreationHandler = { } 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 const project = new Project(attributes) diff --git a/services/web/test/unit/src/Project/ProjectCreationHandlerTests.js b/services/web/test/unit/src/Project/ProjectCreationHandlerTests.js index a5e3e776f2..b29975f5b8 100644 --- a/services/web/test/unit/src/Project/ProjectCreationHandlerTests.js +++ b/services/web/test/unit/src/Project/ProjectCreationHandlerTests.js @@ -110,6 +110,7 @@ describe('ProjectCreationHandler', function() { } project.name.should.equal(projectName) expect(project.owner_ref + '').to.equal(ownerId) + expect(project.lastUpdatedBy + '').to.equal(ownerId) done() } )