chore: make lint happy

This commit is contained in:
CrescentLeaf
2025-09-25 17:14:09 +08:00
parent 02efac9a8e
commit 0b1a4a53a5

View File

@@ -237,7 +237,7 @@ export default class UserApi extends BaseApi {
msg: "令牌無效",
}
const user = User.findById(token.author)
const user = User.findById(token.author) as User
if (args.chat_id)
user!.addContact(args.chat_id as string)
else if (args.account) {