From d996a81c96950b01d17a79b20d89bccef7b71d6f Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 10 Jun 2021 16:03:17 +1000 Subject: [PATCH] Fix asset db upgrade not having owners --- src/upgrade.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/upgrade.js b/src/upgrade.js index 1a7a800..9fd7720 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -453,6 +453,7 @@ export const versions = { let assets = []; assets.push({ id: uuid(), + owner: map.owner, file: map.file, width: map.width, height: map.height, @@ -465,6 +466,7 @@ export const versions = { const mapRes = map.resolutions[resolution]; assets.push({ id: uuid(), + owner: map.owner, file: mapRes.file, width: mapRes.width, height: mapRes.height, @@ -477,6 +479,7 @@ export const versions = { assets.push({ id: uuid(), + owner: map.owner, file: map.thumbnail.file, width: map.thumbnail.width, height: map.thumbnail.height, @@ -496,6 +499,7 @@ export const versions = { let assets = []; assets.push({ id: uuid(), + owner: token.owner, file: token.file, width: token.width, height: token.height, @@ -505,6 +509,7 @@ export const versions = { }); assets.push({ id: uuid(), + owner: token.owner, file: token.thumbnail.file, width: token.thumbnail.width, height: token.thumbnail.height,