How to update config option ":default-home" from javascript?

What if you read instead the name with a query, like @iant did?

const query = `[
 :find ?name
 :in $ ?t
 :where
   [?p :block/journal-day ?t]
   [?p :block/name ?name]
]`

const todayJournalName = logseq.api.datascript_query(query, ":today")[0][0]