Migration: set collection mtime when creating the first collections.

master
Tom Hacohen 4 years ago
parent 6475a8e343
commit 7403b9a61a

@ -447,11 +447,13 @@ export function WizardMigrationPage(props: OurPagePropsType) {
continue; continue;
} }
} }
const mtime = (new Date()).getTime();
const meta: Etebase.CollectionMetadata = { const meta: Etebase.CollectionMetadata = {
type: colType, type: colType,
name: info.displayName, name: info.displayName,
description: info.description, description: info.description,
color: (info.color !== undefined) ? colorIntToHtml(info.color) : undefined, color: (info.color !== undefined) ? colorIntToHtml(info.color) : undefined,
mtime,
}; };
const collection = await colMgr.create(meta, ""); const collection = await colMgr.create(meta, "");
await colMgr.upload(collection); await colMgr.upload(collection);

Loading…
Cancel
Save