Added actorIds and stashIds aliases to new alert API for consistency.

This commit is contained in:
2025-04-04 06:09:56 +02:00
parent 6492439f56
commit cb47e3fd9e
2 changed files with 8 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import {
updateNotification,
} from '../alerts.js';
// actors and actorIds, stashes and stashIds are aliases for consistency
export const alertsSchema = `
extend type Query {
alerts: [Alert]
@@ -29,6 +30,7 @@ export const alertsSchema = `
allTags: Boolean = true
allMatches: Boolean = true
actors: [Int!]
actorIds: [Int!]
tags: [String!]
tagIds: [Int!]
entities: [String!]
@@ -37,6 +39,7 @@ export const alertsSchema = `
notify: Boolean = true
email: Boolean = false
stashes: [Int!]
stashIds: [Int!]
comment: String
meta: JSON
): Alert