Skip to content

Commit 2dc3089

Browse files
Chandan SMChandan SM
Chandan SM
authored and
Chandan SM
committed
Minor Changes
1 parent 4bc66e6 commit 2dc3089

File tree

6 files changed

+1
-2
lines changed

6 files changed

+1
-2
lines changed

Diff for: .DS_Store

2 KB
Binary file not shown.

Diff for: score_keeper_client/.DS_Store

0 Bytes
Binary file not shown.

Diff for: score_keeper_client/src/.DS_Store

0 Bytes
Binary file not shown.

Diff for: score_keeper_client/src/components/.DS_Store

2 KB
Binary file not shown.

Diff for: score_keeper_server/.DS_Store

6 KB
Binary file not shown.

Diff for: score_keeper_server/server.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ app.post("/news", async (req, res) => {
136136
//////////////////// CRON JOB ///////////////////////
137137

138138
// API credentials and endpoint
139-
const API_KEY = 'b0a74c4e4aa344608bad726df4baa0cc';
140139
const URL = 'https://newsapi.org/v2/everything';
141140

142141
// Function to fetch and store news data
@@ -146,7 +145,7 @@ const fetchAndStoreNewsData = async () => {
146145
params: {
147146
q: 'badminton',
148147
sortBy: 'publishedAt',
149-
apiKey: API_KEY,
148+
apiKey: process.env.API_KEY,
150149
},
151150
});
152151

0 commit comments

Comments
 (0)