sr-npm 1.7.13 → 1.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/data.js +5 -5
- package/package.json +1 -1
package/backend/data.js
CHANGED
|
@@ -334,15 +334,15 @@ function getSmartToken() {
|
|
|
334
334
|
|
|
335
335
|
async function createApiKeyCollectionAndFillIt() {
|
|
336
336
|
console.log("Creating ApiKey collection and filling it with the smart token");
|
|
337
|
-
console.log("COLLECTIONS", COLLECTIONS);
|
|
338
|
-
console.log("COLLECTIONS_FIELDS", COLLECTIONS_FIELDS);
|
|
337
|
+
console.log("COLLECTIONS ", COLLECTIONS);
|
|
338
|
+
console.log("COLLECTIONS_FIELDS ", COLLECTIONS_FIELDS);
|
|
339
339
|
await createCollectionIfMissing(COLLECTIONS.API_KEY, COLLECTIONS_FIELDS.API_KEY);
|
|
340
340
|
console.log("Getting the smart token");
|
|
341
341
|
const token = await getSmartToken();
|
|
342
342
|
console.log("Inserting the smart token into the ApiKey collection");
|
|
343
|
-
await wixData.insert("ApiKey", {
|
|
344
|
-
|
|
345
|
-
});
|
|
343
|
+
// await wixData.insert("ApiKey", {
|
|
344
|
+
// token: token
|
|
345
|
+
// });
|
|
346
346
|
console.log("Smart token inserted into the ApiKey collection");
|
|
347
347
|
}
|
|
348
348
|
|