perf: 优化类型问题
This commit is contained in:
@@ -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('分享不存在或已过期');
|
||||
|
||||
Reference in New Issue
Block a user