fix: preserve literal types for mongoose queries and seed data
This commit is contained in:
1 parent
fbf22284e8
commit
2d8027cb16
3 files changed
+6
-6
No files matched your search
@@ -540,7 +540,7 @@ export class TournamentCodeService {
|
||||
): Promise<MatchDocument[]> {
|
||||
const MatchModel = await this.connectionService.getModel('match');
|
||||
const filter: {
|
||||
status: { $in: string[] };
|
||||
status: { $in: MatchDocument['status'][] };
|
||||
communityId?: mongoose.Types.ObjectId;
|
||||
} = {
|
||||
status: { $in: ['team-built', 'in-progress'] },
|
||||
|
||||
Reference in new issue
Block a user