Fix response

This commit is contained in:
syuilo 2019-04-24 14:54:15 +09:00
parent 9c774a50f8
commit 9fac8a611f
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 2 additions and 9 deletions

View File

@ -25,13 +25,8 @@ export const meta = {
}, },
res: { res: {
type: types.array, type: types.boolean,
optional: bool.false, nullable: bool.false, optional: bool.false, nullable: bool.false,
items: {
type: types.object,
optional: bool.false, nullable: bool.false,
ref: 'DriveFile',
}
}, },
}; };
@ -41,7 +36,5 @@ export default define(meta, async (ps, user) => {
userId: user.id, userId: user.id,
}); });
return { return file != null;
file: file ? await DriveFiles.pack(file, { self: true }) : null
};
}); });