fix: Check sentry

This commit is contained in:
Andras Bacsai 2022-02-11 21:27:28 +01:00
parent 16a5aeb1ba
commit a1a436300d

View File

@ -12,7 +12,8 @@ export const get: RequestHandler = async (event) => {
try {
const destination = await db.getDestination({ id, teamId });
const settings = await db.listSettings();
const state = await checkContainer(destination.engine, 'coolify-haproxy');
const state =
destination?.engine && (await checkContainer(destination.engine, 'coolify-haproxy'));
return {
status: 200,
body: {