Skip to content

Commit

Permalink
Uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
easafe committed Jul 2, 2024
1 parent ae4767b commit 79cc72b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
.spago
output
- run: psql -f src/Server/sql/index.sql postgresql://merochat_test:merochat_test@localhost:5432/merochat_test
- run: mkdir -p file/upload
- run: npm install
- run: spago build
- run: spago test
4 changes: 2 additions & 2 deletions src/Shared/Resource.purs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ resourcePath res tp = path <> named <> replaced <> resourceType tp
named = resourceName res
replaced = DE.either (const "") (flip replacement tp) res
isUpload = case res of
Left (Upload _) -> true
_ -> false
Left (Upload _) true
_ false
basePath
| production && not isUpload = onlineBasePath
| otherwise = localBasePath
Expand Down

0 comments on commit 79cc72b

Please sign in to comment.