From 5f05ac861a66f4a67735f1f06d91f67f1dca71d2 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Fri, 12 Jun 2026 01:10:07 -0700 Subject: fix: username not showing on leaderboard --- pb_migrations/1781251243_updated_users.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pb_migrations/1781251243_updated_users.js diff --git a/pb_migrations/1781251243_updated_users.js b/pb_migrations/1781251243_updated_users.js new file mode 100644 index 0000000..75a5a8c --- /dev/null +++ b/pb_migrations/1781251243_updated_users.js @@ -0,0 +1,22 @@ +/// +migrate((app) => { + const collection = app.findCollectionByNameOrId("_pb_users_auth_") + + // update collection data + unmarshal({ + "listRule": "", + "viewRule": "" + }, collection) + + return app.save(collection) +}, (app) => { + const collection = app.findCollectionByNameOrId("_pb_users_auth_") + + // update collection data + unmarshal({ + "listRule": "id = @request.auth.id", + "viewRule": "id = @request.auth.id" + }, collection) + + return app.save(collection) +}) -- cgit v1.2.3