Fix response

This commit is contained in:
syuilo 2019-04-24 14:54:15 +09:00
parent 4be7d7b1e9
commit f79ad8668c

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
};
}); });