mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-15 09:24:34 +00:00
Cleanup
This commit is contained in:
parent
7478b788a6
commit
ce245d65fa
@ -174,7 +174,16 @@ const notifyReportFiler = async (reportId, resourceId, context) => {
|
||||
ON MATCH SET notification.updatedAt = toString(datetime())
|
||||
SET notification.read = FALSE
|
||||
WITH notification, submitter,
|
||||
{__typename: "FiledReport", reportId: report.id, createdAt: filed.createdAt, reasonCategory: filed.reasonCategory, reasonDescription: filed.reasonDescription, resource: apoc.map.merge(properties(resource), {__typename: labels(resource)[0]})} AS finalResource
|
||||
{
|
||||
__typename: "FiledReport",
|
||||
reportId: report.id,
|
||||
createdAt: filed.createdAt,
|
||||
reasonCategory: filed.reasonCategory,
|
||||
reasonDescription: filed.reasonDescription,
|
||||
resource: apoc.map.merge(properties(resource), {
|
||||
__typename: labels(resource)[0]
|
||||
})
|
||||
} AS finalResource
|
||||
RETURN notification {.*, from: finalResource, to: properties(submitter)}
|
||||
`,
|
||||
{
|
||||
|
||||
@ -8,7 +8,6 @@ type NOTIFIED {
|
||||
to: User!
|
||||
}
|
||||
|
||||
# Wolle union NotificationSource = Post | Comment | Report
|
||||
union NotificationSource = Post | Comment | FiledReport
|
||||
|
||||
enum NotificationOrdering {
|
||||
|
||||
@ -395,7 +395,6 @@ When("open the notification menu and click on the first item", () => {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Then("see {int} unread notifications in the top menu", count => {
|
||||
cy.get(".notifications-menu").should("contain", count);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user