1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-10-31 23:31:48 +09:00

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

View File

@ -25,13 +25,8 @@ export const meta = {
},
res: {
type: types.array,
type: types.boolean,
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,
});
return {
file: file ? await DriveFiles.pack(file, { self: true }) : null
};
return file != null;
});