fix(profiles): remove double JSON.stringify on privacy field

This commit is contained in:
Samidy 2026-03-08 00:04:14 +03:00
parent 911a2016d0
commit ed566c94cc

View file

@ -471,9 +471,6 @@ const syncManager = {
if (!record) return; if (!record) return;
const updateData = { ...data }; 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 }); await this.pb.collection('DB_users').update(record.id, updateData, { f_id: user.$id });
if (this._userRecordCache) { if (this._userRecordCache) {
@ -648,4 +645,4 @@ if (pb) {
authManager.onAuthStateChanged(syncManager.onAuthStateChanged.bind(syncManager)); authManager.onAuthStateChanged(syncManager.onAuthStateChanged.bind(syncManager));
} }
export { pb, syncManager }; export { pb, syncManager };