aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-06-12 01:10:07 -0700
committerPinapelz <yukais@pinapelz.com>2026-06-12 01:10:07 -0700
commit5f05ac861a66f4a67735f1f06d91f67f1dca71d2 (patch)
treee784339583771821ea5cee1e4a317aee4c0dac04
parentde4ab0c5c281825aebc31c1bc48e84750886f6f3 (diff)
fix: username not showing on leaderboard
-rw-r--r--pb_migrations/1781251243_updated_users.js22
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)
+})
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage