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
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;
if (userID == undefined || userName == undefined || userID === "undefined" || userName.length > 50) {
if (userID == undefined || userName == undefined || userID === "undefined" || userName.length > 64) {
//invalid request
res.sendStatus(400);
return;

View File

@@ -1,4 +1,6 @@
module.exports = function createMemoryCache(memoryFn, cacheTimeMs) {
if (isNaN(cacheTimeMs)) cacheTimeMs = 0;
// holds the promise results
const cache = new Map();
// holds the promises that are not fulfilled