Make get_session() readonly and throw an exception if session cannot be found rather...
[ndcode_site.git] / _lib / page.jst
index 18e5cc2..d07619c 100644 (file)
@@ -9,7 +9,7 @@ return async (env, head, body, scripts) => {
   // initialize env.session_key, set cookie in env.response
   let transaction = await env.site.database.Transaction()
   try {
-    let root = await transaction.get({})
+    let root = await transaction.get()
     let session = await get_session(env, root)
 
     let pageviews = await root.get('pageviews', {})