Skip to content

Commit

Permalink
빌드 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
overthestream committed Oct 5, 2024
1 parent 07bb908 commit d3fc7ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/domain/blurting/blurting.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ export class BlurtingService {
async checkQuestion(){

// check willprocessedAt and call processPreQuestions
const users = await this.userService.getUsersInGroup(q.group.id);
const questions = await this.blurtingPreQuestionRepository.findQuestionsToProcess();
questions.forEach(q=>this.processPreQuestions(q.group, q.no, users ));
const questions = await this.blurtingPreQuestionRepository.findQuestionsToProcess();

Promise.all(questions.map(async q=>{
const users = await this.userService.getUsersInGroup(q.group.id);
this.processPreQuestions(q.group, q.no, users.map(user=>user.id) )}));
}

async processPreQuestions(
Expand Down

0 comments on commit d3fc7ea

Please sign in to comment.