Skip to content

Commit 1ecd3fd

Browse files
committed
fix truncated code blocks
1 parent 7132f6b commit 1ecd3fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/webapp/app/v3/services/alerts/deliverAlert.server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ export class DeliverAlertService extends BaseService {
631631
type: "section",
632632
text: {
633633
type: "mrkdwn",
634-
text: this.#truncateSlackText(`\`\`\`${error.stackTrace ?? error.message}\`\`\``),
634+
text: `\`\`\`${this.#truncateSlackText(error.stackTrace ?? error.message)}\`\`\``,
635635
},
636636
},
637637
{
@@ -743,7 +743,7 @@ export class DeliverAlertService extends BaseService {
743743
type: "section",
744744
text: {
745745
type: "mrkdwn",
746-
text: this.#truncateSlackText(`\`\`\`${error.stackTrace ?? error.message}\`\`\``),
746+
text: `\`\`\`${this.#truncateSlackText(error.stackTrace ?? error.message)}\`\`\``,
747747
},
748748
},
749749
{
@@ -843,9 +843,9 @@ export class DeliverAlertService extends BaseService {
843843
type: "section",
844844
text: {
845845
type: "mrkdwn",
846-
text: this.#truncateSlackText(
847-
`\`\`\`${preparedError.stack ?? preparedError.message}\`\`\``
848-
),
846+
text: `\`\`\`${this.#truncateSlackText(
847+
preparedError.stack ?? preparedError.message
848+
)}\`\`\``,
849849
},
850850
},
851851
{

0 commit comments

Comments
 (0)