From 77ed1d7dc4f891c8356a61d6647d524c02e25dfd Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 12 Sep 2021 23:08:10 +0900 Subject: [PATCH] emoji --- src/models/repositories/emoji.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/models/repositories/emoji.ts b/src/models/repositories/emoji.ts index 24f03574fe..7985c27aba 100644 --- a/src/models/repositories/emoji.ts +++ b/src/models/repositories/emoji.ts @@ -1,14 +1,12 @@ import { EntityRepository, Repository } from 'typeorm'; import { Emoji } from '@/models/entities/emoji'; -import { SchemaType } from '@/misc/schema'; - -export type PackedEmoji = SchemaType; +import { Packed } from '@/misc/schema'; @EntityRepository(Emoji) export class EmojiRepository extends Repository { public async pack( src: Emoji['id'] | Emoji, - ): Promise { + ): Promise> { const emoji = typeof src === 'object' ? src : await this.findOneOrFail(src); return {