diff --git a/src/handlers/scheduledEventHandler.ts b/src/handlers/scheduledEventHandler.ts index 7cdd706..03d2c2a 100644 --- a/src/handlers/scheduledEventHandler.ts +++ b/src/handlers/scheduledEventHandler.ts @@ -102,7 +102,7 @@ export const syncApiHandler = async (env: env) => { fireAndForgetApiCall(env, 'external-accounts/users?action=discord-users-sync', 'POST'), fireAndForgetApiCall(env, 'users', 'POST'), fireAndForgetApiCall(env, 'discord-actions/nicknames/sync?dev=true', 'POST'), - fireAndForgetApiCall(env, 'discord-actions/group-idle-7d', 'PUT'), + fireAndForgetApiCall(env, 'discord-actions/group-idle-7d?dev=true', 'PUT'), fireAndForgetApiCall(env, 'discord-actions/group-onboarding-31d-plus', 'PUT'), ]; diff --git a/src/tests/handlers/scheduledEventHandler.test.ts b/src/tests/handlers/scheduledEventHandler.test.ts index 426f780..aea75d9 100644 --- a/src/tests/handlers/scheduledEventHandler.test.ts +++ b/src/tests/handlers/scheduledEventHandler.test.ts @@ -28,7 +28,7 @@ describe('sync apis', () => { expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledWith(mockEnv, 'external-accounts/users?action=discord-users-sync', 'POST'); expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledWith(mockEnv, 'users', 'POST'); expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledWith(mockEnv, 'discord-actions/nicknames/sync?dev=true', 'POST'); - expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledWith(mockEnv, 'discord-actions/group-idle-7d', 'PUT'); + expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledWith(mockEnv, 'discord-actions/group-idle-7d?dev=true', 'PUT'); expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledWith(mockEnv, 'discord-actions/group-onboarding-31d-plus', 'PUT'); expect(apiCallerModule.fireAndForgetApiCall).toHaveBeenCalledTimes(6); });