Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
fix flows and apis (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
nklincoln committed Sep 22, 2017
1 parent 802b12e commit b1eac4e
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 184 deletions.
Expand Up @@ -5,16 +5,17 @@ angular.module('bc-vda')
$scope.chain = [];
$scope.transactions = [];

$http.get('transactions').then(function(response, err) {
$http.get('transactions')
.then(function(response, err) {
if (err) {
console.log(err);
} else if (Array.isArray(response.data)) {
var i = 138;

$scope.chain = response.data.map(function(transaction) {
var split = transaction.$class.split('.');
var split = transaction.transactionType.split('.');
var type = split[split.length - 1];
var time = Date.parse(transaction.timestamp);
var time = Date.parse(transaction.transactionTimestamp);

$scope.transactions.push({
timestamp: time,
Expand Down
2 changes: 1 addition & 1 deletion packages/vehicle-lifecycle-vda/config/default.json
@@ -1,4 +1,4 @@
{
"nodeRedBaseURL":"ws://localhost:1880",
"composerRestServerBaseURL":"http://localhost:4000"
"composerRestServerBaseURL":"http://localhost:3000"
}
Expand Up @@ -2,7 +2,7 @@ var request = require('request');
var config = require('config');

var composerBaseURL = process.env.COMPOSER_BASE_URL || config.get('composerRestServerBaseURL');
var endpoint = composerBaseURL + '/api/system/transactions'
var endpoint = composerBaseURL + '/api/system/historian'

var get = (req, res) => {
request.get({
Expand Down

0 comments on commit b1eac4e

Please sign in to comment.