Make get_session() readonly and throw an exception if session cannot be found rather...
[ndcode_site.git] / api / account / sign_up / create_account.json.jst
index 2eb3efe..42c0b92 100644 (file)
@@ -32,7 +32,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)
 
         let captcha = await session.get('captcha')