Skip to content

Commit

Permalink
fix: fix backup script keys
Browse files Browse the repository at this point in the history
  • Loading branch information
yjose committed Oct 1, 2024
1 parent c8f89d7 commit 801979e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion scripts/export-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function writeToFile(filename: string, data: any) {
const run = async () => {
console.log("exporting results");
const data = await exportResults();
console.log(data);
writeToFile(getFileName(), data);
};

Expand Down
2 changes: 1 addition & 1 deletion src/lib/firebase/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (import.meta.env?.FIREBASE_PROJECT_ID) {
serviceAccount = {
type: "service_account",
project_id: process.env.FIREBASE_PROJECT_ID,
private_key_id: process.env.FIREBASE_PRIVATE_KEY_ID,
private_key_id: process.env.FIREBASE_PRIVATE_KEY_ID?.replace(/\\n/g, "\n"), // not sure why, but the private key is not working correctly without this in github actions
private_key: process.env.FIREBASE_PRIVATE_KEY,
client_email: process.env.FIREBASE_CLIENT_EMAIL,
client_id: process.env.FIREBASE_CLIENT_ID,
Expand Down

0 comments on commit 801979e

Please sign in to comment.