Skip to content

Commit

Permalink
release version 2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jon gadsden committed Sep 11, 2023
1 parent 1d890d2 commit 0fff283
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions td.server/src/controllers/threatmodelcontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ const logger = loggerHelper.get('controllers/threatmodelcontroller.js');

const repos = (req, res) => responseWrapper.sendResponseAsync(async () => {
const page = req.query.page || 1;
var reposResp;
var repos;
let reposResp;
let repos;
if (env.get().config.GITHUB_USE_SEARCH === 'true') {
logger.debug('Using searchAsync');
const searchQuery = env.get().config.GITHUB_SEARCH_QUERY;
reposResp = await repository.searchAsync(page, req.provider.access_token, searchQuery);
repos = reposResp[0]['items'];
repos = reposResp[0].items;
} else {
logger.debug('Using reposAsync');
reposResp = await repository.reposAsync(page, req.provider.access_token);
Expand Down
4 changes: 2 additions & 2 deletions td.server/src/repositories/threatmodelrepository.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const getClient = (accessToken) => {
const reposAsync = (page, accessToken) => getClient(accessToken).me().
reposAsync(page);

const searchAsync = (accessToken, searchQuery) => getClient(accessToken).search()
.reposAsync({ q: searchQuery });
const searchAsync = (accessToken, searchQuery) => getClient(accessToken).search().
reposAsync({ q: searchQuery });

const userAsync = async (accessToken) => {
const resp = await getClient(accessToken).me().
Expand Down
2 changes: 1 addition & 1 deletion td.vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"license": "Apache-2.0",
"homepage": "https://owasp.org/www-project-threat-dragon/",
"buildState": "-demo",
"buildState": "",
"repository": {
"type": "git",
"url": "git://github.com/OWASP/threat-dragon.git"
Expand Down
2 changes: 0 additions & 2 deletions td.vue/src/service/x6/graph/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ const cellDataChanged = ({ cell }) => {

const nodeAddFlow = (graph) => ({ node }) => {
if (!node.data.isTrustBoundary) {
console.debug('in future add flow from selected node: ' + node.data.name);

const position = node.position();
const config = {
source: {
Expand Down

0 comments on commit 0fff283

Please sign in to comment.