perf: 优化类型问题

This commit is contained in:
richarjiang
2026-04-07 15:35:44 +08:00
parent 3a1b4d22bf
commit 886e70a106
18 changed files with 101 additions and 111 deletions

View File

@@ -68,10 +68,7 @@ export class ShareService {
};
}
async joinShare(
userId: string,
code: string,
): Promise<JoinShareResponseDto> {
async joinShare(userId: string, code: string): Promise<JoinShareResponseDto> {
const config = await this.shareConfigRepository.findByShareCode(code);
if (!config) {
throw new NotFoundException('分享不存在或已过期');