From 9d0707982c15e298ceac737a91ee025c1cf13b57 Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 29 Apr 2024 08:56:19 +0800 Subject: [PATCH] There is no cloud for a session --- scripts/secretariat.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/secretariat.js b/scripts/secretariat.js index 91ba696..8026bfe 100644 --- a/scripts/secretariat.js +++ b/scripts/secretariat.js @@ -363,10 +363,10 @@ class session { } DATA = {"write": DATA}; - DATA[`all`] = await session.read(null, CLOUD); - if ((DATA[`all`] != null && (typeof DATA[`all`]).includes(`obj`)) ? Object.keys(DATA[`all`]).length <= 0 : true) { - DATA[`all`] = {}; - }; + DATA[`all`] = await session.read(null); + ((DATA[`all`] != null && (typeof DATA[`all`]).includes(`obj`)) ? Object.keys(DATA[`all`]).length <= 0 : true) + ? DATA[`all`] = {} + : false; let TARGET = (!(typeof PATH).includes(`obj`)) ? String(PATH).trim().split(",") : PATH;