Toggle navigation
Toggle navigation
This project
Loading...
Sign in
digsig
/
digsig-services
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Stefan Huber
2017-03-27 11:30:30 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
326fa3baab34b6d47ad6254946235af536e7161a
326fa3ba
1 parent
9ee36ad2
local couch url
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
dist/services/repository.js
src/services/repository.ts
dist/services/repository.js
View file @
326fa3b
...
...
@@ -104,7 +104,7 @@ var Repository = (function () {
_this
.
rest
.
scanEnvironment
(
response
.
local_ips
)
.
then
(
function
(
node
)
{
var
res
=
_this
.
parseUrl
(
response
.
db_url
);
resolve
(
_this
.
prepare
(
res
.
protocol
+
'://'
+
res
.
user
+
':'
+
res
.
pass
+
'@
'
+
node
.
ip
+
':'
+
node
.
couchPort
+
'/'
+
res
.
orig_db_name
));
resolve
(
_this
.
prepare
(
'http://
'
+
node
.
ip
+
':'
+
node
.
couchPort
+
'/'
+
res
.
orig_db_name
));
}).
catch
(
function
()
{
resolve
(
_this
.
prepare
(
response
.
db_url
));
});
...
...
src/services/repository.ts
View file @
326fa3b
...
...
@@ -99,7 +99,7 @@ export class Repository {
this
.
rest
.
scanEnvironment
(
response
.
local_ips
)
.
then
(
node
=>
{
let
res
=
this
.
parseUrl
(
response
.
db_url
);
resolve
(
this
.
prepare
(
res
.
protocol
+
'://'
+
res
.
user
+
':'
+
res
.
pass
+
'@
'
+
node
.
ip
+
':'
+
node
.
couchPort
+
'/'
+
res
.
orig_db_name
));
resolve
(
this
.
prepare
(
'http://
'
+
node
.
ip
+
':'
+
node
.
couchPort
+
'/'
+
res
.
orig_db_name
));
}).
catch
(()
=>
{
resolve
(
this
.
prepare
(
response
.
db_url
));
});
...
...
Please
register
or
login
to post a comment