From 6b72d888f82063f2f0d56170b36f5ffa94f6e6a1 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 12 Sep 2021 23:08:42 +0900 Subject: [PATCH] Packed --- src/models/repositories/games/reversi/game.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/models/repositories/games/reversi/game.ts b/src/models/repositories/games/reversi/game.ts index 121a3cad74..9adb386fa9 100644 --- a/src/models/repositories/games/reversi/game.ts +++ b/src/models/repositories/games/reversi/game.ts @@ -2,9 +2,7 @@ import { User } from '@/models/entities/user'; import { EntityRepository, Repository } from 'typeorm'; import { Users } from '../../../index'; import { ReversiGame } from '@/models/entities/games/reversi/game'; -import { SchemaType } from '@/misc/schema'; - -export type PackedReversiGame = SchemaType; +import { Packed } from '@/misc/schema'; @EntityRepository(ReversiGame) export class ReversiGameRepository extends Repository { @@ -14,7 +12,7 @@ export class ReversiGameRepository extends Repository { options?: { detail?: boolean } - ): Promise { + ): Promise> { const opts = Object.assign({ detail: true }, options);