diff --git a/src/libs/util.ts b/src/libs/util.ts index ea8cbab0..62746195 100644 --- a/src/libs/util.ts +++ b/src/libs/util.ts @@ -900,30 +900,12 @@ export interface DatabaseExport { * @returns DatabaseExport object in the standardized format */ export const contactsToExportJson = (contacts: Contact[]): DatabaseExport => { - // Convert each contact to a plain object and ensure all fields are included - const rows = contacts.map((contact) => { - // Create a plain object without stringifying contactMethods - const exContact = { - did: contact.did, - iViewContent: contact.iViewContent, - name: contact.name, - nextPubKeyHashB64: contact.nextPubKeyHashB64, - notes: contact.notes, - profileImageUrl: contact.profileImageUrl, - publicKeyBase64: contact.publicKeyBase64, - seesMe: contact.seesMe, - registered: contact.registered, - contactMethods: contact.contactMethods || [], - }; - return exContact; - }); - return { data: { data: [ { tableName: "contacts", - rows, + rows: contacts, }, ], },