mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	Clean up
This commit is contained in:
		
							parent
							
								
									286da28cd6
								
							
						
					
					
						commit
						bfd8b12a4f
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -10,8 +10,7 @@ export default async (me: mongodb.ObjectID, note: object) => {
 | 
			
		|||
	// if watching now
 | 
			
		||||
	const exist = await Watching.findOne({
 | 
			
		||||
		noteId: (note as any)._id,
 | 
			
		||||
		userId: me,
 | 
			
		||||
		deletedAt: { $exists: false }
 | 
			
		||||
		userId: me
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	if (exist !== null) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue