Make get_session() readonly and throw an exception if session cannot be found rather...
[ndcode_site.git] / api / account / change_details / get_draft.json.jst
index 2f25eb2..c8e8031 100644 (file)
@@ -9,7 +9,7 @@ return async env => {
     async () => {
       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 change_details_draft = await session.get_json('change_details_draft')