Skip to content

Commit

Permalink
one more attempt at fixing the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed Apr 4, 2024
1 parent 98a1a3d commit c4c51c8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions script/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { CosmosClient } from '@azure/cosmos';
import * as fs from 'fs';


process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0


async function main() {
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

const cosmosClient = new CosmosClient({
endpoint: 'https://localhost:8081/',
Expand Down Expand Up @@ -91,18 +91,20 @@ async function main() {
console.error('Error reading file:', err);
exit (1)
}
})

const prizesData = JSON.parse(data);
const prizesData = JSON.parse(data);

var i = 0;

var i = 0;
for (const prize of prizesData) {
container.items.upsert(prize)
i++;
}

for (const prize of prizes_data) {
container.items.upsert(prize)
i++;
}
console.log("Successfully inserted {} rows", i);

})

console.log("Successfully inserted {} rows", i)

}

Expand Down

0 comments on commit c4c51c8

Please sign in to comment.