Closed tshemsedinov closed 1 year ago
For example:
14:05:18 W2 error 127.0.0.1 POST /api 500 500 TypeError: Cannot destructure property 'token' of 'session' as it is undefined. method (/application/api/example.1/getClientInfo.js:7:13) Procedure.invoke (/node_modules/impress/lib/procedure.js:76:22) HttpChannel.rpc (/node_modules/metacom/lib/channel.js:247:27) processTicksAndRejections (internal/process/task_queues.js:95:5)
while getClientInfo.js have destructuring at line 6
getClientInfo.js
({ access: 'public', method: async () => { const { uuid, session, client } = context; const { ip } = client; const { token, accountId } = session; return { result: { ip, token, accountId, uuid } }; }, });
Everything works well as of now
For example:
while
getClientInfo.js
have destructuring at line 6