undo temp
This commit is contained in:
parent
1e164cc94d
commit
b3a1d25e04
1 changed files with 7 additions and 11 deletions
|
@ -30,11 +30,8 @@ export const paramDef = {
|
|||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default define(meta, paramDef, async (ps, user) => {
|
||||
while (await UserLists.findOneBy({
|
||||
userId: user.id,
|
||||
}) != null) {
|
||||
const userList = await UserLists.findOneBy({
|
||||
// id: ps.listId,
|
||||
id: ps.listId,
|
||||
userId: user.id,
|
||||
});
|
||||
|
||||
|
@ -43,5 +40,4 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
}
|
||||
|
||||
await UserLists.delete(userList.id);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue