mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	Fix bug
This commit is contained in:
		
							parent
							
								
									795b56f8ab
								
							
						
					
					
						commit
						c9bf99fa66
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -48,7 +48,10 @@ export const meta = {
 | 
				
			||||||
export default define(meta, async (ps, me) => {
 | 
					export default define(meta, async (ps, me) => {
 | 
				
			||||||
	const type = await detectUrlMine(ps.url);
 | 
						const type = await detectUrlMine(ps.url);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	const exists = await Emojis.findOne({ name: ps.name });
 | 
						const exists = await Emojis.findOne({
 | 
				
			||||||
 | 
							name: ps.name,
 | 
				
			||||||
 | 
							host: null
 | 
				
			||||||
 | 
						});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (exists != null) throw new ApiError(meta.errors.emojiAlredyExists);
 | 
						if (exists != null) throw new ApiError(meta.errors.emojiAlredyExists);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue