fix: misskey problem
This commit is contained in:
parent
bbf49cfff3
commit
6414292c29
1 changed files with 5 additions and 0 deletions
|
@ -76,6 +76,11 @@ const calculateRating = async (host: string, users: User[]) => {
|
||||||
printLog(`${toAcct(user)} 게정이 삭제, 정지, 또는 토큰이 제거된 것으로 보이며, 시스템에서 계정이 제거되었습니다.`, 'warn');
|
printLog(`${toAcct(user)} 게정이 삭제, 정지, 또는 토큰이 제거된 것으로 보이며, 시스템에서 계정이 제거되었습니다.`, 'warn');
|
||||||
await deleteUser(user.username, user.host);
|
await deleteUser(user.username, user.host);
|
||||||
continue;
|
continue;
|
||||||
|
} else if (e.error.message.includes('suspended')) {
|
||||||
|
// ユーザーが削除されている場合、レコードからも消してとりやめ
|
||||||
|
printLog(`${toAcct(user)} 게정이 삭제, 정지, 또는 토큰이 제거된 것으로 보이며, 시스템에서 계정이 제거되었습니다.`, 'warn');
|
||||||
|
await deleteUser(user.username, user.host);
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
printLog(`Misskey 오류: ${JSON.stringify(e.error)}`, 'error');
|
printLog(`Misskey 오류: ${JSON.stringify(e.error)}`, 'error');
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue