Skip to content

Commit

Permalink
fix: use for...in instead for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Aug 5, 2021
1 parent 57866c1 commit b79b35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/FHIR/ImagingStudy/controller/post_convertFHIR.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ async function InsertImagingStudy(Insert_Data, id) {
for (let y = 0; y < dataKeys.length; y++) {
ImagingStudy[dataKeys[y]] = tempInsertData[dataKeys[y]];
}
for (let x = 0; x < Insert_Data.series.length; x++) {
for (let x in Insert_Data.series) {
let series = Insert_Data.series[x];
let seriesStudy = await getImagingStudySeries(series);
if (seriesStudy[0]) {
for (let j = 0; j < series.instance.length; j++) {
for (let j in series.instance) {
let instance = series.instance[j];
let updateSeries = async function () {
return new Promise((resolve) => {
Expand Down

0 comments on commit b79b35d

Please sign in to comment.