fix: Fixed issue where the importer would not correctly parse Google Keep JSON notes
This commit is contained in:
@@ -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'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user