mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Fix response
This commit is contained in:
parent
4be7d7b1e9
commit
f79ad8668c
@ -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;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user