Skip to content

Commit dff026d

Browse files
authored
fix: search notifications for account with any case (#38)
1 parent 27f82ca commit dff026d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/api/notification/services/notification.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,17 @@ export default factories.createCoreService(MODULE_ID, ({ strapi }) => {
5050
},
5151
async getNotificationList(account: string) {
5252
const push = false
53+
const templateFilter = notificationsTemplateFilter(push)
5354
const notifications = await strapi.entityService.findMany(
5455
MODULE_ID,
5556
{
5657
start: 0,
5758
limit: 50,
5859
filters: {
59-
account,
60-
notification_template: notificationsTemplateFilter(push)
60+
$or: [
61+
{ account, notification_template: templateFilter },
62+
{ account: account.toLowerCase(), notification_template: templateFilter },
63+
]
6164
},
6265
populate: NOTIFICATIONS_POPULATE
6366
}

0 commit comments

Comments
 (0)