From b4509c755f046c53202c4f0f38209b5d5dcabcc3 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Mon, 19 Aug 2019 08:18:05 -0400 Subject: [PATCH] remove hyphens from UIDs --- site/src/routes/apps/index.json.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/site/src/routes/apps/index.json.js b/site/src/routes/apps/index.json.js index 5c7b233975..dcc2205ee9 100644 --- a/site/src/routes/apps/index.json.js +++ b/site/src/routes/apps/index.json.js @@ -13,6 +13,10 @@ export async function get(req, res) { offset $2 `, [req.user.id, offset]); + rows.forEach(row => { + row.uid = row.uid.replace(/-/g, ''); + }); + send(res, 200, rows); } else { send(res, 401);