mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 09:07:47 +01:00
Merge pull request #169 from ajayyy/experimental
Increase max username size
This commit is contained in:
commit
b5f93edc7e
2 changed files with 3 additions and 1 deletions
|
@ -12,7 +12,7 @@ module.exports = function setUsername(req, res) {
|
||||||
|
|
||||||
let adminUserIDInput = req.query.adminUserID;
|
let adminUserIDInput = req.query.adminUserID;
|
||||||
|
|
||||||
if (userID == undefined || userName == undefined || userID === "undefined" || userName.length > 50) {
|
if (userID == undefined || userName == undefined || userID === "undefined" || userName.length > 64) {
|
||||||
//invalid request
|
//invalid request
|
||||||
res.sendStatus(400);
|
res.sendStatus(400);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
module.exports = function createMemoryCache(memoryFn, cacheTimeMs) {
|
module.exports = function createMemoryCache(memoryFn, cacheTimeMs) {
|
||||||
|
if (isNaN(cacheTimeMs)) cacheTimeMs = 0;
|
||||||
|
|
||||||
// holds the promise results
|
// holds the promise results
|
||||||
const cache = new Map();
|
const cache = new Map();
|
||||||
// holds the promises that are not fulfilled
|
// holds the promises that are not fulfilled
|
||||||
|
|
Loading…
Reference in a new issue