style: lint

This commit is contained in:
手瓜一十雪
2024-10-15 09:06:47 +08:00
parent a9201826a6
commit 0dc6aa46d0
27 changed files with 167 additions and 167 deletions

View File

@@ -21,8 +21,8 @@ export class SetSpecialTittle extends BaseAction<Payload, any> {
if (!this.core.apis.PacketApi.available) {
throw new Error('PacketClient is not init');
}
let uid = await this.core.apis.UserApi.getUidByUinV2(payload.user_id.toString());
const uid = await this.core.apis.UserApi.getUidByUinV2(payload.user_id.toString());
if(!uid) throw new Error('User not found');
await this.core.apis.PacketApi.sendSetSpecialTittlePacket(payload.group_id.toString(), uid, payload.special_title);
await this.core.apis.PacketApi.sendSetSpecialTittlePacket(payload.group_id.toString(), uid, payload.special_title);
}
}

View File

@@ -1,8 +1,8 @@
import BaseAction from '../BaseAction';
import { ActionName } from '../types';
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import {PacketMsgTextElement} from "@/core/packet/msg/element";
import {SendTextElement} from "@/core";
import { PacketMsgTextElement } from "@/core/packet/msg/element";
import { SendTextElement } from "@/core";
const SchemaData = {