fix(aihr): reject empty org sync requests
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ public class AihrOrgSyncController {
|
||||
|
||||
@SaCheckRole(value = {TenantConstants.SUPER_ADMIN_ROLE_KEY, HR_OPERATOR_ROLE}, mode = SaMode.OR)
|
||||
@PostMapping("/sync")
|
||||
public R<SyncResponse> sync(@RequestBody(required = false) SyncRequest request) {
|
||||
public R<SyncResponse> sync(@RequestBody(required = true) SyncRequest request) {
|
||||
return R.ok(orgSyncService.sync(request));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user