mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 04:33:09 +02:00
Fix response
This commit is contained in:
parent
9c774a50f8
commit
9fac8a611f
1 changed files with 2 additions and 9 deletions
|
@ -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
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue