Update envar name

This commit is contained in:
Jackson Harper
2024-01-16 16:44:04 +08:00
parent 62fdb866a8
commit 9633e7df79

View File

@ -202,8 +202,8 @@ const sendUpdateSubscriptionMutation = async (
lastFetchedChecksum: string,
scheduledAt: Date
) => {
const JWT_SECRET = process.env.JWT_SECRET
const REST_BACKEND_ENDPOINT = process.env.REST_BACKEND_ENDPOINT
const JWT_SECRET = env.server.jwtSecret
const REST_BACKEND_ENDPOINT = process.env.INTERNAL_API_URL
if (!JWT_SECRET || !REST_BACKEND_ENDPOINT) {
throw 'Environment not configured correctly'