From 4a9840d75a3befc8b28648a4052d4cf2dd1273be Mon Sep 17 00:00:00 2001 From: sheldon66 Date: Mon, 23 Dec 2024 14:13:56 +0800 Subject: [PATCH] Revert "fix(notification): filter messages by user ID in in-app channels query" This reverts commit 4b694ee515fb8f0f0506a59ccd152487b195a081. --- packages/plugins/@nocobase/plugin-action-template-print | 1 - .../src/server/defineMyInAppChannels.ts | 1 - 2 files changed, 2 deletions(-) delete mode 160000 packages/plugins/@nocobase/plugin-action-template-print diff --git a/packages/plugins/@nocobase/plugin-action-template-print b/packages/plugins/@nocobase/plugin-action-template-print deleted file mode 160000 index d4d305dde..000000000 --- a/packages/plugins/@nocobase/plugin-action-template-print +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d4d305ddefc0e5ee157993437ec1f334685ccce0 diff --git a/packages/plugins/@nocobase/plugin-notification-in-app-message/src/server/defineMyInAppChannels.ts b/packages/plugins/@nocobase/plugin-notification-in-app-message/src/server/defineMyInAppChannels.ts index 1a0840c53..6b2383dff 100644 --- a/packages/plugins/@nocobase/plugin-notification-in-app-message/src/server/defineMyInAppChannels.ts +++ b/packages/plugins/@nocobase/plugin-notification-in-app-message/src/server/defineMyInAppChannels.ts @@ -73,7 +73,6 @@ export default function defineMyInAppChannels({ app }: { app: Application }) { SELECT messages.${messagesFieldName.channelName} FROM ${messagesTableName} AS messages WHERE messages.${messagesFieldName.status} = '${status}' - AND messages.${messagesFieldName.userId} = ${userId} )`); return { name: { [Op.in]: sql } }; };