fix(profiles): remove double JSON.stringify on privacy field
This commit is contained in:
parent
911a2016d0
commit
ed566c94cc
1 changed files with 1 additions and 4 deletions
|
|
@ -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 };
|
||||
Loading…
Reference in a new issue