Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
65a5dc31
Commit
65a5dc31
authored
9 months ago
by
Matthias Betz
Browse files
Options
Download
Email Patches
Plain Diff
fixing imports
parent
e324c309
master
1 merge request
!176
fixing imports
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
routes/account.ts
+6
-7
routes/account.ts
with
6 additions
and
7 deletions
+6
-7
routes/account.ts
+
6
-
7
View file @
65a5dc31
...
...
@@ -2,7 +2,6 @@ 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
'
...
...
@@ -436,9 +435,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
if
(
!
req
.
files
)
{
callback
(
null
,
newLogoFile
)
}
else
{
let
fileName
=
uuidv4
();
newLogoFile
.
mv
(
logoDir
+
f
ile
N
ame
,
function
(
err
:
any
)
{
newLogoFile
=
logoDir
+
f
ile
N
ame
//
let fileName = uuidv4();
newLogoFile
.
mv
(
logoDir
+
newLogoF
ile
.
n
ame
,
function
(
err
:
any
)
{
newLogoFile
=
logoDir
+
newLogoF
ile
.
n
ame
callback
(
err
,
newLogoFile
)
})
}
...
...
@@ -532,9 +531,9 @@ export = function (app:any, config:any, passport:any, lang:string) {
callback
(
null
,
newLogoFile
)
}
else
{
newLogoFile
=
req
.
files
.
logo
let
fileName
=
uuidv4
();
newLogoFile
.
mv
(
logoDir
+
f
ile
N
ame
,
function
(
err
:
any
)
{
newLogoFile
=
logoDir
+
f
ile
N
ame
//
let fileName = uuidv4();
newLogoFile
.
mv
(
logoDir
+
newLogoF
ile
.
n
ame
,
function
(
err
:
any
)
{
newLogoFile
=
logoDir
+
newLogoF
ile
.
n
ame
callback
(
err
,
newLogoFile
)
})
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets