Skip to content

Commit

Permalink
fix: missing await for async function
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Nov 19, 2023
1 parent ebefd6a commit 430e2cc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class CreateWorkItemService extends BaseWorkItemService {
let uid = _.get(this.request, "query.workitem",
await UIDUtils.createUID()
);
this.dataAdjustBeforeCreatingUps(uid);
this.validateWorkItem(uid);
await this.dataAdjustBeforeCreatingUps(uid);
await this.validateWorkItem(uid);

let patient = await this.findOneOrCreatePatient();
let workItem = new workItemModel(this.requestWorkItem.dicomJson);
let savedWorkItem = await workItem.save();
Expand Down

0 comments on commit 430e2cc

Please sign in to comment.