Commit 65a5dc31 authored by Matthias Betz's avatar Matthias Betz
Browse files

fixing imports

parent e324c309
...@@ -2,7 +2,6 @@ import fs from 'fs' ...@@ -2,7 +2,6 @@ import fs from 'fs'
import async from 'async' import async from 'async'
import bcrypt from 'bcryptjs' import bcrypt from 'bcryptjs'
import * as passportSaml from 'passport-saml' import * as passportSaml from 'passport-saml'
import uuidv4 = require('uuid/v4');
import dbconn from '../config/dbconn' import dbconn from '../config/dbconn'
import methods from '../functions/methods' import methods from '../functions/methods'
import gitlab from '../functions/gitlab' import gitlab from '../functions/gitlab'
...@@ -436,9 +435,9 @@ export = function (app:any, config:any, passport:any, lang:string) { ...@@ -436,9 +435,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
if (!req.files) { if (!req.files) {
callback(null, newLogoFile) callback(null, newLogoFile)
} else { } else {
let fileName = uuidv4(); // let fileName = uuidv4();
newLogoFile.mv(logoDir + fileName, function(err:any) { newLogoFile.mv(logoDir + newLogoFile.name, function(err:any) {
newLogoFile = logoDir + fileName newLogoFile = logoDir + newLogoFile.name
callback(err, newLogoFile) callback(err, newLogoFile)
}) })
} }
...@@ -532,9 +531,9 @@ export = function (app:any, config:any, passport:any, lang:string) { ...@@ -532,9 +531,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
callback(null, newLogoFile) callback(null, newLogoFile)
} else { } else {
newLogoFile = req.files.logo newLogoFile = req.files.logo
let fileName = uuidv4(); // let fileName = uuidv4();
newLogoFile.mv(logoDir + fileName, function(err:any) { newLogoFile.mv(logoDir + newLogoFile.name, function(err:any) {
newLogoFile = logoDir + fileName newLogoFile = logoDir + newLogoFile.name
callback(err, newLogoFile) callback(err, newLogoFile)
}) })
} }
......
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