Merged in feature/IO-3492-FCM-Queue-For-Notifications (pull request #2775)
feature/IO-3492-FCM-Queue-For-Notifications: Implement FCM queue and worker for notifications
This commit is contained in:
@@ -3190,3 +3190,20 @@ mutation INSERT_MEDIA_ANALYTICS($mediaObject: media_analytics_insert_input!) {
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
exports.GET_USERS_FCM_TOKENS_BY_EMAILS = /* GraphQL */ `
|
||||
query GET_USERS_FCM_TOKENS_BY_EMAILS($emails: [String!]!) {
|
||||
users(where: { email: { _in: $emails } }) {
|
||||
email
|
||||
fcmtokens
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
exports.UPDATE_USER_FCM_TOKENS_BY_EMAIL = /* GraphQL */ `
|
||||
mutation UPDATE_USER_FCM_TOKENS_BY_EMAIL($email: String!, $fcmtokens: jsonb) {
|
||||
update_users(where: { email: { _eq: $email } }, _set: { fcmtokens: $fcmtokens }) {
|
||||
affected_rows
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user