Skip to content

Commit

Permalink
fix: github workflow and missing names
Browse files Browse the repository at this point in the history
  • Loading branch information
Esinko committed Aug 20, 2024
1 parent f77f016 commit c4d9073
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
npm ci
npm run build
echo "matikkaeditori.fi" >> dist/CNAME
echo "VERSION: " >> build/VERSION
echo "VERSION: " >> dist/VERSION
echo $(git rev-parse --short "$GITHUB_SHA") >> dist/VERSION
git config user.name github-actions
git config user.email [email protected]
Expand Down
4 changes: 4 additions & 0 deletions src/service-workers/workers/filesystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ class Filesystem {
const isValid = await this.validate(JSON.stringify(jsonData), json.checksum)
if (isValid) {
console.debug("[ Filesystem ] Checksum valid, read task concluded successfully.")
if (!json.name) {
console.warn("[ Filesystem ] Name is missing from item!")
json.name = `Nimeämätön ${json.t === 0 ? "tiedosto" : "kansio"}`
}
resolve(json)
} else {
// TODO: Handle this better
Expand Down

0 comments on commit c4d9073

Please sign in to comment.