From ec67bb808773bed7fa5c39bd696d8f635fff6c42 Mon Sep 17 00:00:00 2001 From: Pitu Date: Sun, 10 May 2020 22:44:21 +0900 Subject: [PATCH] fix: remove uuid from user registration --- src/api/routes/auth/registerPOST.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/api/routes/auth/registerPOST.js b/src/api/routes/auth/registerPOST.js index 0500ff6..feeb360 100644 --- a/src/api/routes/auth/registerPOST.js +++ b/src/api/routes/auth/registerPOST.js @@ -2,7 +2,6 @@ const Route = require('../../structures/Route'); const log = require('../../utils/Log'); const bcrypt = require('bcrypt'); const moment = require('moment'); -const uuidv4 = require('uuid/v4'); class registerPOST extends Route { constructor() { @@ -45,7 +44,6 @@ class registerPOST extends Route { */ const now = moment.utc().toDate(); await db.table('users').insert({ - uuid: uuidv4(), username, password: hash, passwordEditedAt: now,