Skip to content

Commit 98b8d37

Browse files
committed
little fix
1 parent 54cc8db commit 98b8d37

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/lib/project-fetcher-hoc.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const fetchProjectToken = projectId => {
4545
if (hashParams.has('token')) {
4646
return Promise.resolve(hashParams.get('token'));
4747
}
48-
return fetch(`http://localhost:8080/api/v1/projects/getproject?id=${projectId}&requestType=metadata`)
48+
return fetch(`http://localhost:8080/api/v1/projects/getproject?projectID=${projectId}&requestType=metadata`)
4949
.then(r => {
5050
if (!r.ok) return null;
5151
return r.json();
@@ -203,8 +203,6 @@ function protobufToJson(buffer) {
203203
newJson.extensionURLs[extensionURL] = json.extensionURLs[extensionURL];
204204
}
205205

206-
console.log(newJson);
207-
208206
return newJson;
209207
}
210208

src/lib/tw-project-meta-fetcher-hoc.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import log from './log';
66
import { setProjectTitle } from '../reducers/project-title';
77
import { setAuthor, setDescription, setExtraProjectInfo, setRemixedProjectInfo } from '../reducers/tw';
88

9-
const API_URL = 'http://localhost:8080/api/v1/projects/getproject?projectId=$id&requestType=metadata';
9+
const API_URL = 'http://localhost:8080/api/v1/projects/getproject?projectID=$id&requestType=metadata';
1010
const API_REMIX_URL = 'http://localhost:8080/api/v1/projects/getremixes?projectId=$id';
1111

1212
function APIProjectToReadableProject(apiProject) {

0 commit comments

Comments
 (0)