Skip to content

Commit

Permalink
putting idle-7d behind FF (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
fakhruddinkw authored Sep 19, 2024
1 parent b321a7b commit 25849f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/scheduledEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];

Expand Down
2 changes: 1 addition & 1 deletion src/tests/handlers/scheduledEventHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 25849f0

Please sign in to comment.