From ed566c94ccdcdac4c4aa85d53bc5b22b38fc2812 Mon Sep 17 00:00:00 2001 From: Samidy Date: Sun, 8 Mar 2026 00:04:14 +0300 Subject: [PATCH] fix(profiles): remove double JSON.stringify on privacy field --- js/accounts/pocketbase.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/accounts/pocketbase.js b/js/accounts/pocketbase.js index 048ea6c..a8d4c30 100644 --- a/js/accounts/pocketbase.js +++ b/js/accounts/pocketbase.js @@ -471,9 +471,6 @@ const syncManager = { if (!record) return; const updateData = { ...data }; - if (updateData.privacy) { - updateData.privacy = JSON.stringify(updateData.privacy); - } await this.pb.collection('DB_users').update(record.id, updateData, { f_id: user.$id }); if (this._userRecordCache) { @@ -648,4 +645,4 @@ if (pb) { authManager.onAuthStateChanged(syncManager.onAuthStateChanged.bind(syncManager)); } -export { pb, syncManager }; +export { pb, syncManager }; \ No newline at end of file