This commit is contained in:
calzoneman 2016-07-14 23:19:40 -07:00
parent 97cb751573
commit 9e00bb133e
1 changed files with 2 additions and 8 deletions

View File

@ -40,18 +40,12 @@ class AnnouncementRefresher {
return;
}
SERVER.setAnnouncement({
title: data.title,
text: data.text,
from: data.from
});
SERVER.setAnnouncement(data.data);
}
sendAnnouncement(data) {
const message = JSON.stringify({
title: data.title,
text: data.text,
from: data.from,
data: data,
partitionID: this.uuid
});
this.pubClient.publish(SERVER_ANNOUNCEMENTS, message);