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