Make get_session() readonly and throw an exception if session cannot be found rather...
[ndcode_site.git] / api / account / sign_out.json.jst
index eaeedf1..992cfa0 100644 (file)
@@ -11,7 +11,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)
         session.delete('signed_in_as')
         await transaction.commit()