Skip to content

Commit ec71b2a

Browse files
Fix: use localhost instead of container hostname for tests
1 parent 9b08f32 commit ec71b2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/workers/createRecurringEvents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const createRecurringEvents = (cron, fetch) => {
208208
const URL =
209209
process.env.NODE_ENV === 'prod'
210210
? 'https://www.vrms.io'
211-
: `http://backend:${process.env.BACKEND_PORT}`;
211+
: `http://localhost:${process.env.BACKEND_PORT}`;
212212
const headerToSend = process.env.CUSTOM_REQUEST_HEADER;
213213

214214
return scheduleTask(cron, fetch, URL, headerToSend);

0 commit comments

Comments
 (0)