fix(backend): お知らせのmetaタグ出力の条件が間違っていたのを修正 (#15377)

* fix(backend): お知らせのmetaタグ出力の条件が間違っていたのを修正

* Update Changelog
This commit is contained in:
かっこかり 2025-02-01 13:36:10 +09:00 committed by GitHub
parent ba9f295ef2
commit 40bfb1be09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
- -
### Server ### Server
- - Fix: 個別お知らせページのmetaタグ出力の条件が間違っていたのを修正
## 2025.1.0 ## 2025.1.0

View File

@ -817,6 +817,7 @@ export class ClientServerService {
fastify.get<{ Params: { announcementId: string; } }>('/announcements/:announcementId', async (request, reply) => { fastify.get<{ Params: { announcementId: string; } }>('/announcements/:announcementId', async (request, reply) => {
const announcement = await this.announcementsRepository.findOneBy({ const announcement = await this.announcementsRepository.findOneBy({
id: request.params.announcementId, id: request.params.announcementId,
userId: IsNull(),
}); });
if (announcement) { if (announcement) {