Fixed unique folder number
This commit is contained in:
parent
941163822c
commit
831733d090
@ -50,7 +50,8 @@ export default class OfficeFoldersController extends ApiController {
|
||||
|
||||
const officeFolderNumberExist = await this.officeFoldersService.get({where: {folder_number: officeFolderRessource.folder_number}});
|
||||
|
||||
if (officeFolderNumberExist) {
|
||||
|
||||
if (officeFolderNumberExist.length > 0) {
|
||||
this.httpValidationError(response, [{
|
||||
property: "folder_number",
|
||||
constraints: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user