Make get_session() readonly and throw an exception if session cannot be found rather...
[ndcode_site.git] / api / account / change_details / set_draft.json.jst
index 67e2f3e..6bb9f32 100644 (file)
@@ -20,7 +20,7 @@ return async env => {
 
       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)
 
         if (details) {