Skip to content

Commit

Permalink
fix: disable session check for billboard
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-ko committed Nov 8, 2023
1 parent 3726417 commit ea85b08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy-billboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
echo "RPC=${{ secrets.STAGING_RPC }}" >> ./.env
echo "BILLBOARD_PRIVATE_KEY=${{ secrets.BILLBOARD_PRIVATE_KEY}}" >> ./.env
echo "interceptor=${{ secrets.INTERCEPTOR}}" >> ./.env
echo "DISABLE_SESSION_CHECK='true'" >> ./.env
envsubst '${SSL_CERTIFICATE_BASE_LOC} ${TLS_CERTIFICATE_LOCATION} ${TARGET_HOST}' < ./docker/nginx.conf > ./nginx.conf
cat ./.env
- name: Build docker image
Expand Down
6 changes: 6 additions & 0 deletions packages/backend/src/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export default () => {
method: 'POST',
url: req.url,
ensName,
disableSessionCheck:
process.env.DISABLE_SESSION_CHECK === 'true',
});

const data = await submitUserProfile(
Expand All @@ -69,6 +71,10 @@ export default () => {

res.json(data);
} catch (e) {
global.logger.warn({
message: 'POST profile',
error: JSON.stringify(e),
});
res.status(400).send({
message: `Couldn't store profile`,
error: JSON.stringify(e),
Expand Down

0 comments on commit ea85b08

Please sign in to comment.