From 714571415164474a9c154c910a4639a7321c75c7 Mon Sep 17 00:00:00 2001 From: June Date: Mon, 17 Nov 2025 13:50:29 +1300 Subject: [PATCH] fix pb auth issue --- .../1763340583_updated_recipes.js | 22 +++++++++++++++++ .../1763340588_updated_recipes.js | 24 +++++++++++++++++++ web/src/pages/index.astro | 12 ---------- 3 files changed, 46 insertions(+), 12 deletions(-) create mode 100644 pb/pb_migrations/1763340583_updated_recipes.js create mode 100644 pb/pb_migrations/1763340588_updated_recipes.js diff --git a/pb/pb_migrations/1763340583_updated_recipes.js b/pb/pb_migrations/1763340583_updated_recipes.js new file mode 100644 index 0000000..11cf4db --- /dev/null +++ b/pb/pb_migrations/1763340583_updated_recipes.js @@ -0,0 +1,22 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_842702175") + + // update collection data + unmarshal({ + "listRule": "", + "viewRule": "" + }, collection) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_842702175") + + // update collection data + unmarshal({ + "listRule": null, + "viewRule": null + }, collection) + + return app.save(collection) +}) diff --git a/pb/pb_migrations/1763340588_updated_recipes.js b/pb/pb_migrations/1763340588_updated_recipes.js new file mode 100644 index 0000000..a1dcbe3 --- /dev/null +++ b/pb/pb_migrations/1763340588_updated_recipes.js @@ -0,0 +1,24 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("pbc_842702175") + + // update collection data + unmarshal({ + "createRule": "", + "deleteRule": "", + "updateRule": "" + }, collection) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("pbc_842702175") + + // update collection data + unmarshal({ + "createRule": null, + "deleteRule": null, + "updateRule": null + }, collection) + + return app.save(collection) +}) diff --git a/web/src/pages/index.astro b/web/src/pages/index.astro index 1305c7b..1aa593f 100644 --- a/web/src/pages/index.astro +++ b/web/src/pages/index.astro @@ -4,15 +4,3 @@ import { authPB } from "@data/pb"; const pb = await authPB() --- - - - - - - - Astro - - -

Astro

- -