feat: delete "deleteSession" method, validate questId and sessionId

This commit is contained in:
wancat authored and Lin, Hung-Shin committed 2023-11-14 10:44:52 +08:00
1 parent a7422853fa
commit 5df4967a85
12 files changed
+67 -99

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ function debug(...args) {
async function createSession() {
console.log('Creating a new session...')
const res = await api.post('/sessions', {
quest_id: 'helloworld',
questId: 'helloworld',
})
const { data } = await res
if (!data._id) {
@@ -68,7 +68,7 @@ async function connect(sessionId, cookie) {
Cookie: cookie,
},
query: {
session_id: sessionId,
sessionId,
},
})