Skip to content

Commit

Permalink
changed the way env is consumed
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzgrewal committed Nov 15, 2024
1 parent 229ad5d commit 8ca2443
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/services/queries/dashboard/dashboardQueries.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { useMutation, useQuery } from "@tanstack/react-query";

Check failure on line 1 in frontend/src/services/queries/dashboard/dashboardQueries.ts

View workflow job for this annotation

GitHub Actions / Lint (Frontend)

'useQuery' is defined but never used
import axios from "axios";
import { getAuthIdToken } from "../../AuthService";
import { env } from "../../../env";

const backendUrl = import.meta.env.VITE_BACKEND_URL;
const backendUrl = env.VITE_BACKEND_URL;

// Function to send the POST request
export const postViewedOpening = async (openingId: string): Promise<any> => {

Check failure on line 9 in frontend/src/services/queries/dashboard/dashboardQueries.ts

View workflow job for this annotation

GitHub Actions / Lint (Frontend)

Unexpected any. Specify a different type
Expand Down

0 comments on commit 8ca2443

Please sign in to comment.