From 5e86d7ab9c5200d794c3adb2b422d20a2aefd2ce Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 13 Aug 2022 02:00:50 +0200 Subject: restructure to single project --- bundle/scripts/benchmark/users.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 bundle/scripts/benchmark/users.js (limited to 'bundle/scripts/benchmark/users.js') diff --git a/bundle/scripts/benchmark/users.js b/bundle/scripts/benchmark/users.js deleted file mode 100644 index bce67bf4..00000000 --- a/bundle/scripts/benchmark/users.js +++ /dev/null @@ -1,25 +0,0 @@ -require("dotenv").config(); -const fetch = require("node-fetch"); -const count = Number(process.env.COUNT) || 50; -const endpoint = process.env.API || "http://localhost:3001"; - -async function main() { - for (let i = 0; i < count; i++) { - fetch(`${endpoint}/api/auth/register`, { - method: "POST", - body: JSON.stringify({ - fingerprint: `${i}.wR8vi8lGlFBJerErO9LG5NViJFw`, - username: `test${i}`, - invite: null, - consent: true, - date_of_birth: "2000-01-01", - gift_code_sku_id: null, - captcha_key: null, - }), - headers: { "content-type": "application/json" }, - }); - console.log(i); - } -} - -main(); -- cgit 1.5.1