Update note-reaction.ts
This commit is contained in:
		
							parent
							
								
									80d0c0cf74
								
							
						
					
					
						commit
						22d0d11895
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -7,6 +7,8 @@ import Reaction from './note-reaction';
 | 
			
		|||
import { pack as packUser } from './user';
 | 
			
		||||
 | 
			
		||||
const NoteReaction = db.get<INoteReaction>('noteReactions');
 | 
			
		||||
NoteReaction.createIndex('noteId');
 | 
			
		||||
NoteReaction.createIndex('userId');
 | 
			
		||||
NoteReaction.createIndex(['userId', 'noteId'], { unique: true });
 | 
			
		||||
export default NoteReaction;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue