1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Fix until int conversion

This commit is contained in:
sunnylqm 2021-06-24 15:13:03 +08:00
parent daf870fd75
commit d4d12e1889

View File

@ -138,7 +138,7 @@ function checkOperation(op) {
if (action.type === 'block') {
blockUpdate = {
reason: action.reason,
until: (Date.now() + action.duration) / 1000,
until: Math.round((Date.now() + action.duration) / 1000),
};
Pushy.setBlockUpdate(blockUpdate);
}