Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:desci-labs/nodes into notificati…
Browse files Browse the repository at this point in the history
…ons-system
  • Loading branch information
kadamidev committed Oct 16, 2024
2 parents 08968d2 + 8a58fc3 commit d8ebd20
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:

jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# container:
# image: ubuntu:latest
# options: --user 1001
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-isolated-media-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ env:
jobs:
build-and-push:
name: Build and deploy
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: hashicorp/setup-terraform@v1
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-nodes-media.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
build-and-push:
name: Build and deploy
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: hashicorp/setup-terraform@v1
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-repo-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
build-and-push:
# needs: build-and-test
name: Build and deploy
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: hashicorp/setup-terraform@v1
- name: Checkout
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:

jobs:
build-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# container:
# image: ubuntu:latest
# options: --user 1001
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
build-and-push-images:
# we build and push for every commit, even if tests pass, that way when tests pass deployment is short (run test + build in parallel)
name: Build and push images
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: hashicorp/setup-terraform@v1
- name: Checkout
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
needs:
- build-and-test
- build-and-push-images
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: hashicorp/setup-terraform@v1
- name: Checkout
Expand Down
3 changes: 2 additions & 1 deletion desci-server/src/services/PublishPackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ class PublishPackageService {
let nodeUuid = ensureUuidEndsWithDot(node.uuid);
nodeUuid = nodeUuid.slice(0, -1);
// const paddedTimestamp = unixTimestamp.padEnd(13, '0');

const publishTime = demoMode
? Date.now().toString().slice(0, 10)
: await publishServices.retrieveBlockTimeByManifestCid(nodeUuid, usedManifestCid);
: (await publishServices.retrieveBlockTimeByManifestCid(nodeUuid, usedManifestCid)).slice(0, 10);

const publishDate = PublishPackageService.convertUnixTimestampToDate(publishTime);
const authors = manifest.authors?.map((author) => author.name);
Expand Down

0 comments on commit d8ebd20

Please sign in to comment.