@@ -269,15 +269,6 @@ module.exports.createProject = async (req, res) => {
269269 const executeOperation = async ( session ) => {
270270 const { name, description, siteUrl } = createProjectSchema . parse ( req . body ) ;
271271
272- if ( ! req . user . onboarding ?. completed ) {
273- const queryOpts = session ? { session } : { } ;
274- const existing = await Project . findOne ( { owner : req . user . _id } , null , queryOpts ) ;
275- if ( existing ) {
276- const projectObj = existing . toObject ( ) ;
277- prepareCreatedProjectResponse ( projectObj , req . user ) ;
278- return { projectObj, newProject : existing } ;
279- }
280- }
281272
282273 if ( req . projectLimit !== undefined ) {
283274 const queryOpts = session ? { session } : { } ;
@@ -324,15 +315,6 @@ module.exports.createProject = async (req, res) => {
324315 return { projectObj, newProject } ;
325316 } ;
326317
327- if ( ! req . user . onboarding ?. completed ) {
328- const existing = await Project . findOne ( { owner : req . user . _id } ) . lean ( ) ;
329- if ( existing ) {
330- await markDeveloperOnboardingStep ( req . user . _id , 'projectCreated' , { projectId : existing . _id } ) ;
331- const projectObj = { ...existing } ;
332- prepareCreatedProjectResponse ( projectObj , req . user ) ;
333- return res . status ( 201 ) . json ( projectObj ) ;
334- }
335- }
336318
337319 let session = null ;
338320 try {
0 commit comments