Крутой фикс, согласен...

This commit is contained in:
2024-10-06 17:55:40 +04:00
parent ac95dad30e
commit 5c66c617ff
2 changed files with 7 additions and 10 deletions

View File

@@ -69,7 +69,7 @@ export class FirebaseAdminController {
@HttpCode(HttpStatus.OK)
@ResultDto(null)
async postUpdate(@Body() postUpdateDto: FcmPostUpdateDto): Promise<void> {
await this.firebaseAdminService.sendByTopic("app-update", {
await this.firebaseAdminService.sendByTopic("common", {
data: {
type: "app-update",
version: postUpdateDto.version,

View File

@@ -88,16 +88,13 @@ export class ScheduleService {
schedule.etag,
);
await this.firebaseAdminService.sendByTopic(
"schedule-update",
{
data: {
type: "schedule-update",
replaced: isReplaced.toString(),
etag: schedule.etag,
},
await this.firebaseAdminService.sendByTopic("common", {
data: {
type: "schedule-update",
replaced: isReplaced.toString(),
etag: schedule.etag,
},
);
});
}
this.scheduleUpdatedAt = new Date();
}