Skip to content

Commit 2275f12

Browse files
committed
InsertObjectIntoCollection was sent locally instead of remotely
1 parent e956090 commit 2275f12

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎renderer/components/layout/flexlayout/mainContainerClass.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ class MainInnerContainer extends React.Component<any, { layoutFile: string | nul
228228
}
229229
const { setJupyterStatus } = this.props as LayoutContextType
230230
if (this.props.workspace?.isRemote) {
231-
window.backend.requestExpress({ method: 'post', path: '/start-jupyter-server', host: this.props.tunnel.host, body: { workspacePath: this.props.workspace?.workingDirectory?.path } })
231+
window.backend.requestExpress({ method: 'post', path: '/start-jupyter-server', host: this.props.tunnel.host, body: { workspacePath: this.props.workspace?.workingDirectory?.path } })
232232
.then((response) => {
233233
setJupyterStatus(response.data)
234234
if (response.data.running) {

‎renderer/components/mongoDB/mongoDBUtils.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export async function insertMEDDataObjectIfNotExists(medData, path = null, jsonD
162162
console.log("tunnel before insert-object-into-collection:", tunnel)
163163
if (tunnel && tunnel.tunnelActive && tunnel.localDBPort) { // run remotely
164164
try {
165-
const response = await window.backend.requestExpress({ method: 'post', path: '/insert-object-into-collection', host: tunnel.host, body: { objectPath: path, medDataObject: medData } })
165+
const response = await window.backend.requestExpress({ method: 'post', path: '/insert-object-into-collection', host: tunnel.host, port: tunnel.localDBPort, body: { objectPath: path, medDataObject: medData } })
166166
if (response?.data?.success) {
167167
console.log(`${medData.type} object successfully inserted remotely.`)
168168
} else {

0 commit comments

Comments
 (0)