[CodeFactor] Apply fixes

[ci skip] [skip ci]
This commit is contained in:
codefactor-io 2022-08-04 10:03:54 +00:00
parent 212a03fb1b
commit 21ad2644c6
No known key found for this signature in database
GPG Key ID: B66B2D63282C190F

View File

@ -6,7 +6,7 @@ import Session from "../kcp/Session";
export default async function handle(session: Session, packet: Packet) {
const body = packet.body as DressAvatarCsReq;
let avatar = await Avatar.loadAvatarForPlayer(session.player, body.baseAvatarId);
const avatar = await Avatar.loadAvatarForPlayer(session.player, body.baseAvatarId);
avatar.db.equipmentUniqueId = body.equipmentUniqueId;
await avatar.save();