Fix asset db upgrade not having owners

This commit is contained in:
Mitchell McCaffrey 2021-06-10 16:03:17 +10:00
parent 6013d839bb
commit d996a81c96

View File

@ -453,6 +453,7 @@ export const versions = {
let assets = []; let assets = [];
assets.push({ assets.push({
id: uuid(), id: uuid(),
owner: map.owner,
file: map.file, file: map.file,
width: map.width, width: map.width,
height: map.height, height: map.height,
@ -465,6 +466,7 @@ export const versions = {
const mapRes = map.resolutions[resolution]; const mapRes = map.resolutions[resolution];
assets.push({ assets.push({
id: uuid(), id: uuid(),
owner: map.owner,
file: mapRes.file, file: mapRes.file,
width: mapRes.width, width: mapRes.width,
height: mapRes.height, height: mapRes.height,
@ -477,6 +479,7 @@ export const versions = {
assets.push({ assets.push({
id: uuid(), id: uuid(),
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,
@ -496,6 +499,7 @@ export const versions = {
let assets = []; let assets = [];
assets.push({ assets.push({
id: uuid(), id: uuid(),
owner: token.owner,
file: token.file, file: token.file,
width: token.width, width: token.width,
height: token.height, height: token.height,
@ -505,6 +509,7 @@ export const versions = {
}); });
assets.push({ assets.push({
id: uuid(), id: uuid(),
owner: token.owner,
file: token.thumbnail.file, file: token.thumbnail.file,
width: token.thumbnail.width, width: token.thumbnail.width,
height: token.thumbnail.height, height: token.thumbnail.height,