Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
code7551 committed Jan 5, 2024
1 parent 8998ef1 commit 731b1db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/cli/src/node.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { getSignerFromPrivateKey, operatorRuntime } from "@sentry/core";
import axios from "axios";
import { formatUnits } from "ethers";
interface ENVS extends NodeJS.ProcessEnv {
FIREBASE_RTDB?: string;
FIREBASE_AUTH?: string;
Expand All @@ -11,7 +12,7 @@ if (FIREBASE_RTDB && FIREBASE_AUTH && SIGNER_PRIVATE_KEY)
const { signer, address } = getSignerFromPrivateKey(SIGNER_PRIVATE_KEY);
const saveDB = (data: string, child = "") => {
console.log(data);
const dbURL = `${FIREBASE_RTDB}/${address.toLowerCase()}${child}.json?auth=${FIREBASE_AUTH}`;
const dbURL = `${FIREBASE_RTDB}/nodelogs/${formatUnits(address)}${child}.json?auth=${FIREBASE_AUTH}`;
axios
.put(dbURL, data, { headers: { "Content-Type": "application/json" } })
.catch((e) => {
Expand Down

0 comments on commit 731b1db

Please sign in to comment.