improvements: address feedback and setup queue worker profiles

This commit is contained in:
Scott Wilson
2025-06-02 14:40:06 -07:00
parent 3ae2ec1f51
commit d924580599
31 changed files with 356 additions and 254 deletions
@@ -145,7 +145,7 @@ export const useUpdateSecretScanningConfig = () => {
return useMutation({
mutationFn: async ({ projectId, ...params }: TSecretScanningConfig) => {
const { data } = await apiRequest.patch<TGetSecretScanningConfigResponse>(
`/api/v2/secret-scanning/configs/${projectId}`,
`/api/v2/secret-scanning/configs?projectId=${projectId}`,
params
);
@@ -237,7 +237,8 @@ export const useGetSecretScanningConfig = (
queryKey: secretScanningV2Keys.configByProjectId(projectId),
queryFn: async () => {
const { data } = await apiRequest.get<TGetSecretScanningConfigResponse>(
`/api/v2/secret-scanning/configs/${projectId}`
"/api/v2/secret-scanning/configs",
{ params: { projectId } }
);
return data.config;