mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3389 from omnivore-app/fix/refresh-feed-api-url
Fix endpoint for internal refresh feed API call
This commit is contained in:
commit
3f163a99c7
1 changed files with 6 additions and 1 deletions
|
|
@ -200,8 +200,13 @@ const sendUpdateSubscriptionMutation = async (
|
|||
lastFetchedChecksum: string,
|
||||
scheduledAt: Date
|
||||
) => {
|
||||
if (!process.env.INTERNAL_API_URL || !env.server.jwtSecret) {
|
||||
throw new Error(
|
||||
'Can not send update subscription, environment not configured.'
|
||||
)
|
||||
}
|
||||
const JWT_SECRET = env.server.jwtSecret
|
||||
const REST_BACKEND_ENDPOINT = process.env.INTERNAL_API_URL
|
||||
const REST_BACKEND_ENDPOINT = `${process.env.INTERNAL_API_URL}/api`
|
||||
|
||||
if (!JWT_SECRET || !REST_BACKEND_ENDPOINT) {
|
||||
throw 'Environment not configured correctly'
|
||||
|
|
|
|||
Loading…
Reference in a new issue