mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-12 23:23:34 +08:00
Replaced literals with constant. Thanks Bruception
This commit is contained in:
parent
daf8edeb1b
commit
fdbec3c7b4
1 changed files with 4 additions and 4 deletions
|
|
@ -263,28 +263,28 @@ export const userTagsAdd = rateLimit({
|
|||
});
|
||||
|
||||
export const userCustomThemeGet = rateLimit({
|
||||
windowMs: 60 * 60 * 1000, // 60 min
|
||||
windowMs: ONE_HOUR,
|
||||
max: 30 * REQUEST_MULTIPLIER,
|
||||
keyGenerator: getAddress,
|
||||
handler: customHandler,
|
||||
});
|
||||
|
||||
export const userCustomThemeAdd = rateLimit({
|
||||
windowMs: 60 * 60 * 1000, // 60 min
|
||||
windowMs: ONE_HOUR,
|
||||
max: 30 * REQUEST_MULTIPLIER,
|
||||
keyGenerator: getAddress,
|
||||
handler: customHandler,
|
||||
});
|
||||
|
||||
export const userCustomThemeRemove = rateLimit({
|
||||
windowMs: 60 * 60 * 1000, // 60 min
|
||||
windowMs: ONE_HOUR,
|
||||
max: 30 * REQUEST_MULTIPLIER,
|
||||
keyGenerator: getAddress,
|
||||
handler: customHandler,
|
||||
});
|
||||
|
||||
export const userCustomThemeEdit = rateLimit({
|
||||
windowMs: 60 * 60 * 1000, // 60 min
|
||||
windowMs: ONE_HOUR,
|
||||
max: 30 * REQUEST_MULTIPLIER,
|
||||
keyGenerator: getAddress,
|
||||
handler: customHandler,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue