lint fixes
This commit is contained in:
		
							parent
							
								
									d6fe910076
								
							
						
					
					
						commit
						28dd05216f
					
				| 
						 | 
					@ -93,6 +93,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		return emoji;
 | 
							return emoji;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public async add(data: {
 | 
						public async add(data: {
 | 
				
			||||||
		driveFile: MiDriveFile;
 | 
							driveFile: MiDriveFile;
 | 
				
			||||||
| 
						 | 
					@ -195,6 +196,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public async updateRequest(id: MiEmojiRequest['id'], data: {
 | 
						public async updateRequest(id: MiEmojiRequest['id'], data: {
 | 
				
			||||||
		driveFile?: MiDriveFile;
 | 
							driveFile?: MiDriveFile;
 | 
				
			||||||
| 
						 | 
					@ -224,6 +226,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		this.localEmojisCache.refresh();
 | 
							this.localEmojisCache.refresh();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public async addAliasesBulk(ids: MiEmoji['id'][], aliases: string[]) {
 | 
						public async addAliasesBulk(ids: MiEmoji['id'][], aliases: string[]) {
 | 
				
			||||||
		const emojis = await this.emojisRepository.findBy({
 | 
							const emojis = await this.emojisRepository.findBy({
 | 
				
			||||||
| 
						 | 
					@ -331,12 +334,14 @@ export class CustomEmojiService implements OnApplicationShutdown {
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public async deleteRequest(id: MiEmojiRequest['id']) {
 | 
						public async deleteRequest(id: MiEmojiRequest['id']) {
 | 
				
			||||||
		const emoji = await this.emojiRequestsRepository.findOneByOrFail({ id: id });
 | 
							const emoji = await this.emojiRequestsRepository.findOneByOrFail({ id: id });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		await this.emojiRequestsRepository.delete(emoji.id);
 | 
							await this.emojiRequestsRepository.delete(emoji.id);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public async deleteBulk(ids: MiEmoji['id'][], moderator?: MiUser) {
 | 
						public async deleteBulk(ids: MiEmoji['id'][], moderator?: MiUser) {
 | 
				
			||||||
		const emojis = await this.emojisRepository.findBy({
 | 
							const emojis = await this.emojisRepository.findBy({
 | 
				
			||||||
| 
						 | 
					@ -457,6 +462,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
 | 
				
			||||||
	public checkDuplicate(name: string): Promise<boolean> {
 | 
						public checkDuplicate(name: string): Promise<boolean> {
 | 
				
			||||||
		return this.emojisRepository.exist({ where: { name, host: IsNull() } });
 | 
							return this.emojisRepository.exist({ where: { name, host: IsNull() } });
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public checkRequestDuplicate(name: string): Promise<boolean> {
 | 
						public checkRequestDuplicate(name: string): Promise<boolean> {
 | 
				
			||||||
		return this.emojiRequestsRepository.exist({ where: { name } });
 | 
							return this.emojiRequestsRepository.exist({ where: { name } });
 | 
				
			||||||
| 
						 | 
					@ -471,6 +477,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
 | 
				
			||||||
	public getEmojiRequestById(id: string): Promise<MiEmojiRequest | null> {
 | 
						public getEmojiRequestById(id: string): Promise<MiEmojiRequest | null> {
 | 
				
			||||||
		return this.emojiRequestsRepository.findOneBy({ id });
 | 
							return this.emojiRequestsRepository.findOneBy({ id });
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	@bindThis
 | 
						@bindThis
 | 
				
			||||||
	public dispose(): void {
 | 
						public dispose(): void {
 | 
				
			||||||
		this.cache.dispose();
 | 
							this.cache.dispose();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue