mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Upgrade Server Deps (#12328)
* upgrade uuid * upgrade gulp-imagemin * upgrade bcrypt * upgrade validator.js * fix uuid import * upgrade got * upgrade sinon * upgrade passport-google-oauth2 * fix unit test
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import express from 'express';
|
||||
import uuid from 'uuid';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import bodyParser from 'body-parser';
|
||||
|
||||
const app = express();
|
||||
@@ -30,7 +30,7 @@ app.post('/webhooks/:id', (req, res) => {
|
||||
// See http://stackoverflow.com/a/37054753/2601552
|
||||
const sockets = {};
|
||||
server.on('connection', socket => {
|
||||
const id = uuid.v4();
|
||||
const id = uuid();
|
||||
sockets[id] = socket;
|
||||
|
||||
socket.once('close', () => {
|
||||
|
||||
Reference in New Issue
Block a user