|
@@ -22,8 +22,8 @@ export class ApplyCompanyController implements BaseController {
|
|
|
@ApiQuery({ name: 'examine' })
|
|
|
async examine(@Body('id') id: number, @Body('status') status: string) {
|
|
|
if (!id || !status) throw new ServiceError(ErrorCode.BODY_ERROR);
|
|
|
- const result = await this.service.update({ id }, { status });
|
|
|
if (status === '1') await this.service.apply(id);
|
|
|
+ const result = await this.service.update({ id }, { status });
|
|
|
return result;
|
|
|
}
|
|
|
|