From 0d333ac83a6b0002f748f9ce8030f5b6426e9625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Sun, 4 Mar 2018 11:26:16 +0100 Subject: [PATCH] Limit is set to 100 automatically --- server/routing/client/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routing/client/api.js b/server/routing/client/api.js index c55a96fd..b230b93d 100644 --- a/server/routing/client/api.js +++ b/server/routing/client/api.js @@ -897,7 +897,7 @@ try { res.send("failed"); return; } - token_db.collection("api_token").insert({name: name, token: id, usage: 0, active: false}, function(err, docs){ + token_db.collection("api_token").insert({name: name, token: id, usage: 0, active: false, limit: 100}, function(err, docs){ token_db.collection("api_links").insert({id: uniqid_link, token: id, createdAt: new Date()}, function(err, docs) { let transporter = nodemailer.createTransport(mailconfig);