Skip to content

Commit

Permalink
Merge pull request #12365 from OfficeDev/yimin/fix-apikey
Browse files Browse the repository at this point in the history
fix: fix api-key template always return empty
  • Loading branch information
MSFT-yiz authored Sep 11, 2024
2 parents fd4eef2 + be73357 commit cff77ab
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ async function repairs(req, context) {
};
}

// Get the repair records from the data.json file.
const repairRecords = require("../repairsData.json");

// Initialize response.
const res = {
status: 200,
jsonBody: {
results: [],
results: repairRecords,
},
};

Expand All @@ -38,9 +41,6 @@ async function repairs(req, context) {
return res;
}

// Get the repair records from the data.json file.
const repairRecords = require("../repairsData.json");

// Filter the repair records by the assignedTo query parameter.
const repairs = repairRecords.filter((item) => {
const query = assignedTo.trim().toLowerCase();
Expand Down

0 comments on commit cff77ab

Please sign in to comment.