mirror of https://github.com/calzoneman/sync.git
Fix #601
This commit is contained in:
parent
97cb751573
commit
9e00bb133e
|
@ -40,18 +40,12 @@ class AnnouncementRefresher {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SERVER.setAnnouncement({
|
SERVER.setAnnouncement(data.data);
|
||||||
title: data.title,
|
|
||||||
text: data.text,
|
|
||||||
from: data.from
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendAnnouncement(data) {
|
sendAnnouncement(data) {
|
||||||
const message = JSON.stringify({
|
const message = JSON.stringify({
|
||||||
title: data.title,
|
data: data,
|
||||||
text: data.text,
|
|
||||||
from: data.from,
|
|
||||||
partitionID: this.uuid
|
partitionID: this.uuid
|
||||||
});
|
});
|
||||||
this.pubClient.publish(SERVER_ANNOUNCEMENTS, message);
|
this.pubClient.publish(SERVER_ANNOUNCEMENTS, message);
|
||||||
|
|
Loading…
Reference in New Issue