Skip to content

Commit

Permalink
chore(j-s): Robot URLs (#16144)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
gudjong and kodiakhq[bot] authored Sep 25, 2024
1 parent 2366141 commit 59391dd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import formatISO from 'date-fns/formatISO'
import { Base64 } from 'js-base64'
import { Sequelize } from 'sequelize-typescript'
import { ConfidentialClientApplication } from '@azure/msal-node'

Expand Down Expand Up @@ -840,7 +841,12 @@ export class CourtService {
): Promise<unknown> {
try {
const subject = `Landsréttur - ${appealCaseNumber} - skjal`
const content = JSON.stringify({ category, name, dateSent, url })
const content = JSON.stringify({
category,
name,
dateSent,
url: url && Base64.encode(url),
})

return this.sendToRobot(
subject,
Expand Down

0 comments on commit 59391dd

Please sign in to comment.