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; 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);