Skip to content

Commit

Permalink
Fix importing cosmos db in localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
infhyroyage committed Jan 6, 2024
1 parent 53727ea commit daaf4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmosdb/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const createImportData = (): ImportData => {
(dirResult: ImportDatabaseData, testName: string) => {
// テスト名のjsonファイル名からjsonの中身を読込み
const importItems: ImportItem[] = JSON.parse(
readFileSync(join(dataPath, courseName, testName), "utf8")
readFileSync(join(dataPath, courseName, `${testName}.json`), "utf8")
);

dirResult[testName] = importItems;
Expand Down

0 comments on commit daaf4fd

Please sign in to comment.