fix: Fixed issue where the importer would not correctly parse Google Keep JSON notes

This commit is contained in:
Aman Harwara
2023-01-06 20:57:18 +05:30
parent 5bdbfe9fc7
commit 2e79fc412c

View File

@@ -98,13 +98,13 @@ export class GoogleKeepConverter {
static isValidGoogleKeepJson(json: any): boolean {
return (
json.title &&
json.textContent &&
json.userEditedTimestampUsec &&
typeof json.title === 'string' &&
typeof json.textContent === 'string' &&
typeof json.userEditedTimestampUsec === 'number' &&
typeof json.isArchived === 'boolean' &&
typeof json.isTrashed === 'boolean' &&
typeof json.isPinned === 'boolean' &&
json.color
typeof json.color === 'string'
)
}