fix: upgrade mongoose to 9.11.4 and align community model type
This commit is contained in:
1 parent
2d8027cb16
commit
5882585f69
3 files changed
+28
-27
No files matched your search
@@ -46,7 +46,7 @@
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.15.1",
|
||||
"jose": "^6.2.2",
|
||||
"mongoose": "9.9.2",
|
||||
"mongoose": "9.11.4",
|
||||
"nats": "^2.29.3",
|
||||
"newrelic": "^14.3.3",
|
||||
"redis": "^5.12.1",
|
||||
|
||||
@@ -7,6 +7,7 @@ import { readFile } from 'node:fs/promises';
|
||||
import { resolve } from 'node:path';
|
||||
import { ConnectionService, resolveMongoDbName } from '../connection.service';
|
||||
import type {
|
||||
Community,
|
||||
MatchGameResult,
|
||||
MatchParticipant,
|
||||
MatchSeriesResult,
|
||||
@@ -260,7 +261,7 @@ async function main() {
|
||||
}
|
||||
|
||||
async function resolveCommunity(
|
||||
CommunityModel: mongoose.Model<unknown>,
|
||||
CommunityModel: mongoose.Model<Community>,
|
||||
communityId?: string,
|
||||
): Promise<CommunityLean> {
|
||||
const community = communityId
|
||||
|
||||
Reference in new issue
Block a user