ファイルのURLを保存するように
This commit is contained in:
@ -62,6 +62,7 @@ const addFile = async (
|
||||
comment: string = null,
|
||||
folderId: mongodb.ObjectID = null,
|
||||
force: boolean = false,
|
||||
url: string = null,
|
||||
uri: string = null
|
||||
): Promise<IDriveFile> => {
|
||||
log(`registering ${name} (user: ${getAcct(user)}, path: ${path})`);
|
||||
@ -296,6 +297,10 @@ const addFile = async (
|
||||
properties: properties
|
||||
} as IMetadata;
|
||||
|
||||
if (url !== null) {
|
||||
metadata.url = url;
|
||||
}
|
||||
|
||||
if (uri !== null) {
|
||||
metadata.uri = uri;
|
||||
}
|
||||
|
Reference in New Issue
Block a user