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 { static isValidGoogleKeepJson(json: any): boolean {
return ( return (
json.title && typeof json.title === 'string' &&
json.textContent && typeof json.textContent === 'string' &&
json.userEditedTimestampUsec && typeof json.userEditedTimestampUsec === 'number' &&
typeof json.isArchived === 'boolean' && typeof json.isArchived === 'boolean' &&
typeof json.isTrashed === 'boolean' && typeof json.isTrashed === 'boolean' &&
typeof json.isPinned === 'boolean' && typeof json.isPinned === 'boolean' &&
json.color typeof json.color === 'string'
) )
} }