Add timestamps to polls.

Closes #562
This commit is contained in:
Xaekai 2016-07-07 06:53:06 -07:00
parent f75d40d278
commit 5896a1c0eb
4 changed files with 10 additions and 4 deletions

View file

@ -43,6 +43,7 @@ PollModule.prototype.load = function (data) {
this.poll.options = data.poll.options;
this.poll.counts = data.poll.counts;
this.poll.votes = data.poll.votes;
this.poll.timestamp = data.poll.timestamp;
}
}
};
@ -59,7 +60,8 @@ PollModule.prototype.save = function (data) {
options: this.poll.options,
counts: this.poll.counts,
votes: this.poll.votes,
obscured: this.poll.obscured
obscured: this.poll.obscured,
timestamp: this.poll.timestamp
};
};