Skip to content

Commit f3d727c

Browse files
Merge pull request #3351 from OneCommunityGlobal/newell-timer-service-fix
Newell - Fix timer service not working in migrated URL
2 parents 8004b57 + ffb415d commit f3d727c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/URL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const ENDPOINTS = {
127127
REJECT_TASK_EDIT_SUGGESTION: taskEditSuggestionId =>
128128
`${APIEndpoint}/taskeditsuggestion/${taskEditSuggestionId}`,
129129

130-
TIMER_SERVICE: `${APIEndpoint.replace('http', 'ws').replace('api', 'timer-service')}`,
130+
TIMER_SERVICE: new URL('/timer-service', APIEndpoint.replace('http', 'ws')).toString(),
131131
TIMEZONE_LOCATION: location => `${APIEndpoint}/timezone/${location}`,
132132

133133
ROLES: () => `${APIEndpoint}/roles`,

0 commit comments

Comments
 (0)