Skip to content

Commit

Permalink
remove hyphens from UIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 19, 2019
1 parent a53849d commit b4509c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/src/routes/apps/index.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b4509c7

Please sign in to comment.