Update upgrade.js
This commit is contained in:
parent
9e8898f769
commit
33d512e7b8
@ -514,17 +514,18 @@ export const versions = {
|
|||||||
resolution,
|
resolution,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (map.thumbnail) {
|
||||||
assets.push({
|
assets.push({
|
||||||
id: uuid(),
|
id: uuid(),
|
||||||
owner: map.owner,
|
owner: map.owner,
|
||||||
file: map.thumbnail.file,
|
file: map.thumbnail.file,
|
||||||
width: map.thumbnail.width,
|
width: map.thumbnail.width,
|
||||||
height: map.thumbnail.height,
|
height: map.thumbnail.height,
|
||||||
mime: "",
|
mime: "",
|
||||||
prevId: map.id,
|
prevId: map.id,
|
||||||
prevType: "mapThumbnail",
|
prevType: "mapThumbnail",
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
maps = null;
|
maps = null;
|
||||||
await tx.table("assets").bulkAdd(assets);
|
await tx.table("assets").bulkAdd(assets);
|
||||||
@ -557,16 +558,18 @@ export const versions = {
|
|||||||
prevId: token.id,
|
prevId: token.id,
|
||||||
prevType: "token",
|
prevType: "token",
|
||||||
});
|
});
|
||||||
assets.push({
|
if (token.thumbnail) {
|
||||||
id: uuid(),
|
assets.push({
|
||||||
owner: token.owner,
|
id: uuid(),
|
||||||
file: token.thumbnail.file,
|
owner: token.owner,
|
||||||
width: token.thumbnail.width,
|
file: token.thumbnail.file,
|
||||||
height: token.thumbnail.height,
|
width: token.thumbnail.width,
|
||||||
mime: "",
|
height: token.thumbnail.height,
|
||||||
prevId: token.id,
|
mime: "",
|
||||||
prevType: "tokenThumbnail",
|
prevId: token.id,
|
||||||
});
|
prevType: "tokenThumbnail",
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tokens = null;
|
tokens = null;
|
||||||
await tx.table("assets").bulkAdd(assets);
|
await tx.table("assets").bulkAdd(assets);
|
||||||
|
Loading…
Reference in New Issue
Block a user