Merge pull request #169 from ajayyy/experimental

Increase max username size
This commit is contained in:
Ajay Ramachandran 2020-10-15 11:37:31 -04:00 committed by GitHub
commit b5f93edc7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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;

View file

@ -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