diff --git a/src/backend/common/database/drizzle/repositories/PlayRepository.ts b/src/backend/common/database/drizzle/repositories/PlayRepository.ts index 3098576d..e901d5f3 100644 --- a/src/backend/common/database/drizzle/repositories/PlayRepository.ts +++ b/src/backend/common/database/drizzle/repositories/PlayRepository.ts @@ -785,6 +785,7 @@ export const playToRepositoryCreatePlayOpts = (data: MarkOptional => { const platformId = this.multiPlatform ? genGroupId(play) : SINGLE_USER_PLATFORM_ID; - const playRow = await this.playRepo.createPlays([(playToRepositoryCreatePlayOpts({play, state: 'discovered'}))]); + const playRow = await this.playRepo.createPlays([(playToRepositoryCreatePlayOpts({play, state: 'discovered', platformId: genGroupIdStr(platformId)}))]); const recentPlays = await this.getRecentlyDiscoveredPlaysByPlatform(platformId, false); // only need to update if its already in memory, // and better to update in-memory than clear cache so we aren't refetching from db on every discover