Commit ecc60a3c authored by Matthias Betz's avatar Matthias Betz
Browse files

Merge branch 'fix_critical_issues' into 'master'

fixing typescript import

See merge request !175
parents 18daee04 e324c309
Pipeline #9854 failed with stage
in 12 seconds
......@@ -2,6 +2,7 @@ import fs from 'fs'
import async from 'async'
import bcrypt from 'bcryptjs'
import * as passportSaml from 'passport-saml'
import uuidv4 = require('uuid/v4');
import dbconn from '../config/dbconn'
import methods from '../functions/methods'
import gitlab from '../functions/gitlab'
......@@ -435,7 +436,6 @@ export = function (app:any, config:any, passport:any, lang:string) {
if (!req.files) {
callback(null, newLogoFile)
} else {
const uuidv4 = require('uuid/v4');
let fileName = uuidv4();
newLogoFile.mv(logoDir + fileName, function(err:any) {
newLogoFile = logoDir + fileName
......@@ -532,7 +532,6 @@ export = function (app:any, config:any, passport:any, lang:string) {
callback(null, newLogoFile)
} else {
newLogoFile = req.files.logo
const uuidv4 = require('uuid/v4');
let fileName = uuidv4();
newLogoFile.mv(logoDir + fileName, function(err:any) {
newLogoFile = logoDir + fileName
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment