From 747bf3bb8534bfae09e70fdf1a453e6a7a582b23 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 24 Apr 2019 13:22:36 +0900 Subject: [PATCH] Update migrate.ts --- src/migrate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/migrate.ts b/src/migrate.ts index c7eded26b..31603a554 100644 --- a/src/migrate.ts +++ b/src/migrate.ts @@ -195,7 +195,7 @@ async function main() { _id: file.metadata.userId }); if (user == null) return; - if (file.metadata.storage && file.metadata.storage.key) { // when object storage + if (file.metadata.storageProps && file.metadata.storageProps.key) { // when object storage await DriveFiles.save({ id: file._id.toHexString(), userId: user._id.toHexString(), @@ -208,7 +208,7 @@ async function main() { size: file.length, url: file.metadata.url, uri: file.metadata.uri, - accessKey: file.metadata.storage.key, + accessKey: file.metadata.storageProps.key, folderId: file.metadata.folderId ? file.metadata.folderId.toHexString() : null, storedInternal: false, isLink: false