diff --git a/apps/backend/src/app/modules/maps/map-list.service.ts b/apps/backend/src/app/modules/maps/map-list.service.ts index e3a691ca27..706f05fd79 100644 --- a/apps/backend/src/app/modules/maps/map-list.service.ts +++ b/apps/backend/src/app/modules/maps/map-list.service.ts @@ -71,10 +71,16 @@ export class MapListService implements OnModuleInit { fileName: true, hash: true, status: true, - createdAt: true, + images: true, thumbnail: true, + info: true, leaderboards: true, - info: true + credits: { include: { user: true } }, + submission: + type === FlatMapList.SUBMISSION + ? { include: { currentVersion: true } } + : undefined, + createdAt: true } }); diff --git a/libs/db/src/scripts/seed.ts b/libs/db/src/scripts/seed.ts index ae5d7be723..25cb572aaa 100644 --- a/libs/db/src/scripts/seed.ts +++ b/libs/db/src/scripts/seed.ts @@ -751,10 +751,17 @@ prismaWrapper(async (prisma: PrismaClient) => { name: true, fileName: true, hash: true, - createdAt: true, + status: true, + images: true, thumbnail: true, + info: true, leaderboards: true, - info: true + credits: { include: { user: true } }, + submission: + type === FlatMapList.SUBMISSION + ? { include: { currentVersion: true } } + : undefined, + createdAt: true } });