Browse Source

fix: host workflow not working (#1309)

Ahmad Kholid 2 years ago
parent
commit
2b49489a1a
2 changed files with 3 additions and 2 deletions
  1. 1 1
      package.json
  2. 2 1
      src/utils/api.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "automa",
-  "version": "1.28.3",
+  "version": "1.28.2",
   "description": "An extension for automating your browser by connecting blocks",
   "repository": {
     "type": "git",

+ 2 - 1
src/utils/api.js

@@ -110,7 +110,8 @@ export async function getUserWorkflows(useCache = true) {
       try {
         const { lastBackup } = await browser.storage.local.get('lastBackup');
         const response = await fetchApi(
-          `/me/workflows?lastBackup=${(useCache && lastBackup) || null}`
+          `/me/workflows?lastBackup=${(useCache && lastBackup) || null}`,
+          { auth: true }
         );
 
         if (!response.ok) throw new Error(response.statusText);