add: developer panel
This commit is contained in:
parent
ebded00fd3
commit
39574df691
44 changed files with 982 additions and 84 deletions
|
@ -76,7 +76,7 @@ impl DataManager {
|
|||
// get poll and check permission
|
||||
let poll = self.get_poll_by_id(data.poll_id).await?;
|
||||
|
||||
let now = unix_epoch_timestamp() as usize;
|
||||
let now = unix_epoch_timestamp();
|
||||
let diff = now - poll.created;
|
||||
|
||||
if diff > poll.expires {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue