File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/api/src/routers/state Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @blobscan/api " : patch
3+ ---
4+
5+ Resolved an issue where the app state wasn't being returned if the blob storage state is absent
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ type StateQuery = {
88 lastFinalizedBlock : number ;
99 lastLowerSyncedSlot : number ;
1010 lastUpperSyncedSlot : number ;
11- swarmDataId : number ;
12- swarmDataTTL : number ;
11+ swarmDataId ? : number ;
12+ swarmDataTTL ? : number ;
1313} [ ] ;
1414
1515type BlocksQuery = {
@@ -32,7 +32,7 @@ export const getAppState = publicProcedure.query(
3232 st.last_upper_synced_slot AS "lastUpperSyncedSlot",
3333 bs.swarm_data_id AS "swarmDataId",
3434 bs.swarm_data_ttl AS "swarmDataTTL"
35- FROM blockchain_sync_state st JOIN blob_storages_state bs ON st.id = bs.id
35+ FROM blockchain_sync_state st LEFT JOIN blob_storages_state bs ON st.id = bs.id
3636 WHERE st.id = 1;
3737 ` ,
3838 prisma . $queryRaw < BlocksQuery > `
You can’t perform that action at this time.
0 commit comments