Added row level security to alert tables. Added alerts to user query.

This commit is contained in:
DebaucheryLibrarian
2021-04-04 22:52:54 +02:00
parent da0cbced15
commit d36e52d5d1
5 changed files with 130 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
import { graphql, post, del } from '../api';
import { releaseFields } from '../fragments';
import { actorFields, releaseFields } from '../fragments';
import { curateUser } from '../curate';
function initUsersActions(store, _router) {
@@ -55,6 +55,37 @@ function initUsersActions(store, _router) {
}
}
}
alerts {
id
notify
email
tags: alertsTags {
tag {
id
name
slug
}
}
actors: alertsActors {
actor {
${actorFields}
}
}
entity: alertsEntityByAlertId {
entity {
id
name
slug
independent
parent {
id
name
slug
independent
}
}
}
}
}
}
`, {