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

fixing typescript import

parent 9b31c226
This commit is part of merge request !175. Comments created here will be created in the context of that merge request.
...@@ -2,6 +2,7 @@ import fs from 'fs' ...@@ -2,6 +2,7 @@ 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'
...@@ -435,7 +436,6 @@ export = function (app:any, config:any, passport:any, lang:string) { ...@@ -435,7 +436,6 @@ export = function (app:any, config:any, passport:any, lang:string) {
if (!req.files) { if (!req.files) {
callback(null, newLogoFile) callback(null, newLogoFile)
} else { } else {
const uuidv4 = require('uuid/v4');
let fileName = uuidv4(); let fileName = uuidv4();
newLogoFile.mv(logoDir + fileName, function(err:any) { newLogoFile.mv(logoDir + fileName, function(err:any) {
newLogoFile = logoDir + fileName newLogoFile = logoDir + fileName
...@@ -532,7 +532,6 @@ export = function (app:any, config:any, passport:any, lang:string) { ...@@ -532,7 +532,6 @@ 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
const uuidv4 = require('uuid/v4');
let fileName = uuidv4(); let fileName = uuidv4();
newLogoFile.mv(logoDir + fileName, function(err:any) { newLogoFile.mv(logoDir + fileName, function(err:any) {
newLogoFile = logoDir + fileName newLogoFile = logoDir + fileName
......
Supports Markdown
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