Greptile review fixes

This commit is contained in:
x032205
2025-07-31 12:51:56 -04:00
parent 149cecd805
commit 9928ca17ea
2 changed files with 7 additions and 7 deletions
@@ -72,8 +72,8 @@ export const registerCloudflareConnectionRouter = async (server: FastifyZodProvi
handler: async (req) => { handler: async (req) => {
const { connectionId } = req.params; const { connectionId } = req.params;
const projects = await server.services.appConnection.cloudflare.listWorkersScripts(connectionId, req.permission); const scripts = await server.services.appConnection.cloudflare.listWorkersScripts(connectionId, req.permission);
return projects; return scripts;
} }
}); });
@@ -99,9 +99,9 @@ export const registerCloudflareConnectionRouter = async (server: FastifyZodProvi
onRequest: verifyAuth([AuthMode.JWT]), onRequest: verifyAuth([AuthMode.JWT]),
handler: async (req) => { handler: async (req) => {
const { connectionId } = req.params; const { connectionId } = req.params;
s;
const projects = await server.services.appConnection.cloudflare.listZones(connectionId, req.permission); const zones = await server.services.appConnection.cloudflare.listZones(connectionId, req.permission);
return projects; return zones;
} }
}); });
}; };
@@ -410,7 +410,7 @@ export const AcmeCertificateAuthorityFns = ({
break; break;
} }
default: { default: {
throw new Error("Unsupported DNS provider"); throw new Error(`Unsupported DNS provider: ${acmeCa.configuration.dnsProviderConfig.provider as string}`);
} }
} }
}, },
@@ -438,7 +438,7 @@ export const AcmeCertificateAuthorityFns = ({
break; break;
} }
default: { default: {
throw new Error("Unsupported DNS provider"); throw new Error(`Unsupported DNS provider: ${acmeCa.configuration.dnsProviderConfig.provider as string}`);
} }
} }
} }