From 842200bcf2842b66b61141175da3b69141fb09d3 Mon Sep 17 00:00:00 2001 From: Shivam Date: Tue, 16 Dec 2025 00:28:27 +0530 Subject: [PATCH 1/4] fix(docs): clarify working directory for drizzle migration (#2375) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index aa25eda538b..fee84b52f1d 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,7 @@ DATABASE_URL="postgresql://postgres:your_password@localhost:5432/simstudio" Then run the migrations: ```bash +cd apps/sim # Required so drizzle picks correct .env file bunx drizzle-kit migrate --config=./drizzle.config.ts ``` From fcf52ac4d559560e7b662164d9e1e347e9e46408 Mon Sep 17 00:00:00 2001 From: Gaurav Chadha <65453826+Chadha93@users.noreply.github.com> Date: Tue, 16 Dec 2025 00:29:12 +0530 Subject: [PATCH 2/4] fix(landing): prevent url encoding for spaces for footer links (#2376) --- apps/sim/app/(landing)/components/footer/footer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/(landing)/components/footer/footer.tsx b/apps/sim/app/(landing)/components/footer/footer.tsx index cb13cbd3f6e..412f3040b5d 100644 --- a/apps/sim/app/(landing)/components/footer/footer.tsx +++ b/apps/sim/app/(landing)/components/footer/footer.tsx @@ -109,7 +109,7 @@ export default function Footer({ fullWidth = false }: FooterProps) { {FOOTER_BLOCKS.map((block) => ( Date: Wed, 17 Dec 2025 13:12:39 +0000 Subject: [PATCH 3/4] fix: handle empty body.value in Teams webhook notification parser (#2425) --- apps/sim/lib/webhooks/utils.server.ts | 36 +++++++++++++++------------ 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/apps/sim/lib/webhooks/utils.server.ts b/apps/sim/lib/webhooks/utils.server.ts index 9ea6bd5652f..80d82d80ae8 100644 --- a/apps/sim/lib/webhooks/utils.server.ts +++ b/apps/sim/lib/webhooks/utils.server.ts @@ -81,7 +81,11 @@ async function formatTeamsGraphNotification( foundWorkflow: any, request: NextRequest ): Promise { - const notification = body.value[0] + const notification = body.value?.[0] + if (!notification) { + logger.warn('Received empty Teams notification body') + return null + } const changeType = notification.changeType || 'created' const resource = notification.resource || '' const subscriptionId = notification.subscriptionId || '' @@ -359,7 +363,7 @@ async function formatTeamsGraphNotification( contentType: mimeType, size, }) - } catch {} + } catch { } } } } @@ -634,24 +638,24 @@ export async function formatWebhookInput( const senderObj = message.from ? { - id: message.from.id, - firstName: message.from.first_name, - lastName: message.from.last_name, - username: message.from.username, - languageCode: message.from.language_code, - isBot: message.from.is_bot, - } + id: message.from.id, + firstName: message.from.first_name, + lastName: message.from.last_name, + username: message.from.username, + languageCode: message.from.language_code, + isBot: message.from.is_bot, + } : null const chatObj = message.chat ? { - id: message.chat.id, - type: message.chat.type, - title: message.chat.title, - username: message.chat.username, - firstName: message.chat.first_name, - lastName: message.chat.last_name, - } + id: message.chat.id, + type: message.chat.type, + title: message.chat.title, + username: message.chat.username, + firstName: message.chat.first_name, + lastName: message.chat.last_name, + } : null return { From 9b1be0af088971d70b9255e5fec1db9643e2d8d3 Mon Sep 17 00:00:00 2001 From: div Date: Thu, 18 Dec 2025 04:28:04 +0530 Subject: [PATCH 4/4] Update directory path for migration command --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fa64f12308..abd3ed66fb4 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ DATABASE_URL="postgresql://postgres:your_password@localhost:5432/simstudio" Then run the migrations: ```bash -cd apps/sim # Required so drizzle picks correct .env file +cd packages/db # Required so drizzle picks correct .env file bunx drizzle-kit migrate --config=./drizzle.config.ts ```