Skip to content

Commit

Permalink
Updating action
Browse files Browse the repository at this point in the history
  • Loading branch information
IPadawans committed Oct 5, 2023
1 parent 48ccbae commit ea5b03b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/templates/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ runs:
run: |
aws lambda update-function-code \
--function-name ${{ inputs.AWS_LAMBDA_FUNCTION_NAME }} \
--zip-file fileb://my_deployment_package.zip
--zip-file fileb://my_deployment_package.zip \
--publish
# Wait for the Lambda function update to finish
aws lambda wait function-updated \
--function-name ${{ inputs.AWS_LAMBDA_FUNCTION_NAME }}
2 changes: 1 addition & 1 deletion src/shared/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const getDiffBetweenLastMetagraphSnapshotAndNow = async (network, metagraph_id)
try {
const response = await axios.get(beUrl)
const lastSnapshotTimestamp = response.data.data.timestamp
console.log(`LAST SNAPSHOT OF METAGRAPH ${metagraph_id}: ${lastSnapshotTimestamp}`)
console.log(`LAST SNAPSHOT OF THE METAGRAPH ${metagraph_id}: ${lastSnapshotTimestamp}`)

return moment.utc().diff(lastSnapshotTimestamp, 'minutes')
} catch (e) {
Expand Down

0 comments on commit ea5b03b

Please sign in to comment.