feat: support pagination and searching in notification backend

disabled broadcast notifications for now

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2024-02-01 21:19:45 +02:00
parent 50c7dbde2f
commit b3c3672b64
13 changed files with 124 additions and 56 deletions
@@ -21,17 +21,6 @@ import { PluginEnvironment } from '../types';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
// TODO: Remove this test code
setInterval(() => {
env.notificationService.send({
receivers: { type: 'broadcast' },
title: 'Test',
description: 'Test',
link: '/catalog',
topic: 'topic',
});
}, 60000);
return await createRouter({
logger: env.logger,
identity: env.identity,