diff --git a/packages/backend/src/server/api/endpoints/announcements.ts b/packages/backend/src/server/api/endpoints/announcements.ts index 8bc813ae0d..ea2c7a7e4b 100644 --- a/packages/backend/src/server/api/endpoints/announcements.ts +++ b/packages/backend/src/server/api/endpoints/announcements.ts @@ -94,6 +94,10 @@ export default class extends Endpoint { query.orWhere('announcement."userId" = :userId', { userId: me.id }); } } else { + query.select([ + 'announcement.*', + 'FALSE as "isRead"', + ]); query.where('announcement."userId" IS NULL'); }