-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: trigger data refresher manually #731
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #731 +/- ##
=========================================
- Coverage 2.43% 2.42% -0.01%
=========================================
Files 39 39
Lines 2014 2017 +3
Branches 37 37
=========================================
Hits 49 49
- Misses 1928 1931 +3
Partials 37 37
☔ View full report in Codecov by Sentry. |
src/api.ts
Outdated
import { name, version } from '../package.json'; | ||
import { sendError } from './helpers/utils'; | ||
|
||
const router = express.Router(); | ||
const network = process.env.NETWORK || 'testnet'; | ||
const SEQUENCER_URL = process.env.SEQUENCER_URL || ''; | ||
|
||
refreshSpacesCache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this one here and refreshModerationData
in index.ts 😅 better to keep all in one place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utAck
Extracted from #712
Trigger the space and moderation data refresher manually, instead of automatically on import.
This allow skipping the refresh, and is particularly useful on test suite