mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Fixed tsc build
This commit is contained in:
parent
7c92015fe6
commit
8e712eacf5
Binary file not shown.
@ -357,7 +357,7 @@ export interface Item extends WithDates, WithUuid {
|
||||
jop_share_id?: Uuid;
|
||||
jop_type?: number;
|
||||
jop_encryption_applied?: number;
|
||||
jop_updated_time?: string;
|
||||
jop_updated_time?: number;
|
||||
}
|
||||
|
||||
export interface UserItem extends WithDates {
|
||||
|
@ -160,9 +160,10 @@ export default class ChangeModel extends BaseModel<Change> {
|
||||
|
||||
const items: Item[] = await this.db('items').select('id', 'jop_updated_time').whereIn('items.id', changes.map(c => c.item_id));
|
||||
|
||||
let finalChanges: DeltaChange[] = this.compressChanges(changes);
|
||||
finalChanges = await this.removeDeletedItems(finalChanges, items);
|
||||
finalChanges = finalChanges.map(c => {
|
||||
let processedChanges = this.compressChanges(changes);
|
||||
processedChanges = await this.removeDeletedItems(processedChanges, items);
|
||||
|
||||
const finalChanges: DeltaChange[] = processedChanges.map(c => {
|
||||
const item = items.find(item => item.id === c.item_id);
|
||||
if (!item) return c;
|
||||
return {
|
||||
|
@ -42,6 +42,7 @@ const propertyTypes: Record<string, string> = {
|
||||
'notifications.level': 'NotificationLevel',
|
||||
'shares.type': 'ShareType',
|
||||
'items.content': 'Buffer',
|
||||
'items.jop_updated_time': 'number',
|
||||
'share_users.status': 'ShareUserStatus',
|
||||
'emails.sender_id': 'EmailSender',
|
||||
'emails.sent_time': 'number',
|
||||
|
Loading…
Reference in New Issue
Block a user