Skip to content

Commit

Permalink
changed nodejs version of deployment (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
cami-espinozaq authored Nov 24, 2023
1 parent 9464644 commit 31a332e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
node-version: [14.x]
python-version: [3.0]
env:
BRANCH: production
Expand Down
7 changes: 2 additions & 5 deletions src/lib/project-save-hoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ProjectSaveHOC = (WrappedComponent) => {
await this.saveMeta()
} catch (e) {
if (!this.requestCancelSave) {
console.log("error save:", e)
console.warn("error in saving:", e)
errPromise = this.setError('Das hat leider nicht geklappt')
} else {
errPromise = Promise.reject()
Expand All @@ -92,8 +92,6 @@ const ProjectSaveHOC = (WrappedComponent) => {
}

saveAssets() {
console.log("inside save assets")

const costumeAssets = serializeCostumes(this.props.vm.runtime)
const soundAssets = serializeSounds(this.props.vm.runtime)
return Promise.all(
Expand All @@ -110,10 +108,9 @@ const ProjectSaveHOC = (WrappedComponent) => {
filename: asset.fileName,
}),
})

console.log("save assets res", res)

if (!res.ok && res.status !== 409) {
console.warn("save assets error response", res)
throw new Error(`uploading an asset failed: ${asset.fileName}`)
}

Expand Down

0 comments on commit 31a332e

Please sign in to comment.