diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-06-12 01:10:07 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-06-12 01:10:07 -0700 |
| commit | 5f05ac861a66f4a67735f1f06d91f67f1dca71d2 (patch) | |
| tree | e784339583771821ea5cee1e4a317aee4c0dac04 | |
| parent | de4ab0c5c281825aebc31c1bc48e84750886f6f3 (diff) | |
fix: username not showing on leaderboard
| -rw-r--r-- | pb_migrations/1781251243_updated_users.js | 22 |
1 files changed, 22 insertions, 0 deletions
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 @@ +/// <reference path="../pb_data/types.d.ts" /> +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) +}) |
