refactor: importer

This commit is contained in:
Aman Harwara
2023-12-07 21:29:00 +05:30
parent 2cc2dddb9b
commit 620cd960e2
9 changed files with 14 additions and 13 deletions

View File

@@ -1,5 +1,4 @@
import { DecryptedTransferPayload, NoteContent } from '@standardnotes/models'
import { NoteType } from '@standardnotes/features'
import { Converter, CreateNoteFn } from '../Converter'
type Content =
@@ -125,7 +124,7 @@ export class GoogleKeepConverter implements Converter {
updatedAt: date,
title: title,
text: content,
noteType: NoteType.Super,
useSuperIfPossible: true,
})
}
@@ -181,7 +180,7 @@ export class GoogleKeepConverter implements Converter {
archived: Boolean(parsed.isArchived),
trashed: Boolean(parsed.isTrashed),
pinned: Boolean(parsed.isPinned),
noteType: NoteType.Super,
useSuperIfPossible: true,
})
} catch (e) {
console.error(e)