Compare commits
2 Commits
11ad7bfbeb
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| edcfc8c77f | |||
| 997438035b |
@@ -53,12 +53,12 @@ async function getEvent(client, userId, id, includeData, meta) {
|
|||||||
'senderId', e.sender_id,
|
'senderId', e.sender_id,
|
||||||
'recipientId', e.recipient_id,
|
'recipientId', e.recipient_id,
|
||||||
'created', e.created,
|
'created', e.created,
|
||||||
'agreementId', (
|
'agreementId', COALESCE((
|
||||||
SELECT a.agreement_id_uuid
|
SELECT a.agreement_id_uuid
|
||||||
FROM agreement a
|
FROM agreement a
|
||||||
WHERE a.id = e.agreement_id
|
WHERE a.id = e.agreement_id
|
||||||
AND a.user_id = $1
|
AND a.user_id = $1
|
||||||
),
|
), '00000000-0000-0000-0000-000000000000'),
|
||||||
${dataSql}
|
${dataSql}
|
||||||
'created', e.created
|
'created', e.created
|
||||||
) AS record
|
) AS record
|
||||||
|
|||||||
@@ -87,22 +87,6 @@ async function api() {
|
|||||||
`${config.apiUrl}/api/v1/data/entity/domains/get`,
|
`${config.apiUrl}/api/v1/data/entity/domains/get`,
|
||||||
{
|
{
|
||||||
fedidUrl: config.fedidUrl, // optional
|
fedidUrl: config.fedidUrl, // optional
|
||||||
auth: {
|
|
||||||
subject: {
|
|
||||||
type: "user",
|
|
||||||
id: "tester",
|
|
||||||
},
|
|
||||||
action: {
|
|
||||||
name: "read",
|
|
||||||
},
|
|
||||||
resource: {
|
|
||||||
type: "data",
|
|
||||||
id: "1234",
|
|
||||||
properties: {
|
|
||||||
ownerID: "tester@test.com",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user