zs преди 8 месеца
родител
ревизия
1da6e5f45f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/controller/users/applyCompany.controller.ts

+ 1 - 1
src/controller/users/applyCompany.controller.ts

@@ -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;
   }