Skip to content

Commit

Permalink
maybe this can fix the error
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedegeofroy committed Oct 15, 2024
1 parent 5483251 commit 3e4c85f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stats/stats.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ export class StatsService {
});

const savedStat = await this.statsRepository.save(newStat);
const newStats = await this.findLatest();
this.pubSubService
.getPubSub()
.publish('statCreated', { statCreated: savedStat });
.publish('statCreated', { statCreated: newStats });

return savedStat;
}
Expand Down

0 comments on commit 3e4c85f

Please sign in to comment.