mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
Крутой фикс, согласен...
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -88,16 +88,13 @@ export class ScheduleService {
|
||||
schedule.etag,
|
||||
);
|
||||
|
||||
await this.firebaseAdminService.sendByTopic(
|
||||
"schedule-update",
|
||||
{
|
||||
await this.firebaseAdminService.sendByTopic("common", {
|
||||
data: {
|
||||
type: "schedule-update",
|
||||
replaced: isReplaced.toString(),
|
||||
etag: schedule.etag,
|
||||
},
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
this.scheduleUpdatedAt = new Date();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user