temp
This commit is contained in:
parent
ac5368749c
commit
dda9fb2945
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "calckey",
|
"name": "calckey",
|
||||||
"version": "12.119.0-calc.19-b3",
|
"version": "12.119.0-calc.19-b4",
|
||||||
"codename": "aqua",
|
"codename": "aqua",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -30,14 +30,18 @@ export const paramDef = {
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
export default define(meta, paramDef, async (ps, user) => {
|
export default define(meta, paramDef, async (ps, user) => {
|
||||||
const userList = await UserLists.findOneBy({
|
while (await UserLists.findOneBy({
|
||||||
id: ps.listId,
|
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
});
|
}) != null) {
|
||||||
|
const userList = await UserLists.findOneBy({
|
||||||
|
// id: ps.listId,
|
||||||
|
userId: user.id,
|
||||||
|
});
|
||||||
|
|
||||||
if (userList == null) {
|
if (userList == null) {
|
||||||
throw new ApiError(meta.errors.noSuchList);
|
throw new ApiError(meta.errors.noSuchList);
|
||||||
|
}
|
||||||
|
|
||||||
|
await UserLists.delete(userList.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
await UserLists.delete(userList.id);
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue