File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ Version 0.4.8
66
77To be released.
88
9+ - Fixed a bug where the federation dashboard had not shown due to server
10+ errors when an instance had just been set up.
11+
912 - Upgrade Fedify to 1.3.9.
1013
1114
Original file line number Diff line number Diff line change @@ -16,14 +16,19 @@ data.get("/", async (c) => {
1616 const done = c . req . query ( "done" ) ;
1717 const error = c . req . query ( "error" ) ;
1818
19- const queueMessages = await db
20- . select ( {
21- type : sql `fedify_message_v2.message ->> 'type'` ,
22- number : count ( ) ,
23- } )
24- . from ( sql `fedify_message_v2` )
25- . groupBy ( sql `fedify_message_v2.message ->> 'type'` )
26- . execute ( ) ;
19+ let queueMessages : { type : string ; number : number } [ ] ;
20+ try {
21+ queueMessages = await db
22+ . select ( {
23+ type : sql < string > `fedify_message_v2.message ->> 'type'` ,
24+ number : count ( ) ,
25+ } )
26+ . from ( sql `fedify_message_v2` )
27+ . groupBy ( sql `fedify_message_v2.message ->> 'type'` )
28+ . execute ( ) ;
29+ } catch {
30+ queueMessages = [ ] ;
31+ }
2732
2833 return c . html (
2934 < DashboardLayout title = "Hollo: Federation" selectedMenu = "federation" >
You can’t perform that action at this time.
0 commit comments