Skip to content

Commit 28b1e0a

Browse files
committed
Fix cant read key of undefined bug 🐛
1 parent 822dac2 commit 28b1e0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/script/migrateAssetsLocation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ async function defaultMigrationHandler(element) {
247247
async function migrateFileMeta(repositoryId, metaInputs, metaConfigs) {
248248
const repositoryAssetsPath = storage.getPath(repositoryId);
249249
const newMeta = await Promise.reduce(metaConfigs, async (acc, metaKey) => {
250-
const meta = metaInputs[metaKey];
250+
const meta = get(metaInputs, metaKey);
251251
if (!meta) return acc;
252252
const url = get(meta, 'url');
253253
if (!url) return acc;

0 commit comments

Comments
 (0)