Compare commits

..

2 Commits

Author SHA1 Message Date
edcfc8c77f coalesce nil UUID for null agreement 2026-09-14 21:34:22 +00:00
997438035b remove authorization from seed script 2026-08-31 16:09:30 +00:00
2 changed files with 2 additions and 18 deletions

View File

@@ -53,12 +53,12 @@ async function getEvent(client, userId, id, includeData, meta) {
'senderId', e.sender_id,
'recipientId', e.recipient_id,
'created', e.created,
'agreementId', (
'agreementId', COALESCE((
SELECT a.agreement_id_uuid
FROM agreement a
WHERE a.id = e.agreement_id
AND a.user_id = $1
),
), '00000000-0000-0000-0000-000000000000'),
${dataSql}
'created', e.created
) AS record

View File

@@ -87,22 +87,6 @@ async function api() {
`${config.apiUrl}/api/v1/data/entity/domains/get`,
{
fedidUrl: config.fedidUrl, // optional
auth: {
subject: {
type: "user",
id: "tester",
},
action: {
name: "read",
},
resource: {
type: "data",
id: "1234",
properties: {
ownerID: "tester@test.com",
}
}
}
},
{
headers: {