mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -07:00
fix: 🐛 don't convert time since epoch for ratelimit
https://calckey.social/notes/9gkasnzglmi07rpa
This commit is contained in:
parent
360a1e04dd
commit
744880bb38
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ export const limiter = (
|
||||||
if (info.remaining === 0) {
|
if (info.remaining === 0) {
|
||||||
reject({
|
reject({
|
||||||
message: "RATE_LIMIT_EXCEEDED",
|
message: "RATE_LIMIT_EXCEEDED",
|
||||||
remainingTime: convertMilliseconds(info.resetMs),
|
remainingTime: convertMilliseconds(info.resetMs - Date.now()),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
ok();
|
ok();
|
||||||
|
|
Loading…
Reference in a new issue