Commit 
							
							·
						
						252a449
	
1
								Parent(s):
							
							34857c4
								
⚰️ Remove code from before share model
Browse files
    	
        src/routes/conversation/[id]/+server.ts
    CHANGED
    
    | 
         @@ -90,12 +90,7 @@ export async function DELETE({ locals, params }) { 
     | 
|
| 90 | 
         
             
            		throw error(404, "Conversation not found");
         
     | 
| 91 | 
         
             
            	}
         
     | 
| 92 | 
         | 
| 93 | 
         
            -
            	 
     | 
| 94 | 
         
            -
            		// Keep the convo, as it's been shared we don't want to invalidate share links
         
     | 
| 95 | 
         
            -
            		await collections.conversations.updateOne({ _id: conv._id }, { $unset: { sessionId: 1 } });
         
     | 
| 96 | 
         
            -
            	} else {
         
     | 
| 97 | 
         
            -
            		await collections.conversations.deleteOne({ _id: conv._id });
         
     | 
| 98 | 
         
            -
            	}
         
     | 
| 99 | 
         | 
| 100 | 
         
             
            	return new Response();
         
     | 
| 101 | 
         
             
            }
         
     | 
| 
         | 
|
| 90 | 
         
             
            		throw error(404, "Conversation not found");
         
     | 
| 91 | 
         
             
            	}
         
     | 
| 92 | 
         | 
| 93 | 
         
            +
            	await collections.conversations.deleteOne({ _id: conv._id });
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 94 | 
         | 
| 95 | 
         
             
            	return new Response();
         
     | 
| 96 | 
         
             
            }
         
     |