mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: delete "deleteSession" method, validate questId and sessionId
This commit is contained in:
1 parent
a7422853fa
commit
5df4967a85
12 files changed
+67
-99
No files matched your search
@@ -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,
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user