Skip to content

Commit

Permalink
fix: 병합된 변경 사항 저장 시, await 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchef1 committed Nov 21, 2024
1 parent 02b8f9f commit a940759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/task/service/task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class TaskService {

const newText = json0.apply(initialTask.title, accumulateOperations);
const result = { ...initialTask, title: newText };
this.taskRepository.save(result);
await this.taskRepository.save(result);
const eventPublisher = accumulateOperations.length <= 1 ? userId : null;
this.eventEmitter.emit('broadcast', eventPublisher, projectId, TaskEventResponse.from(taskId));
}
Expand Down

0 comments on commit a940759

Please sign in to comment.