Skip to content

Commit

Permalink
Merge pull request #17 from IndustryFusion/feature/task-004-03-add_co…
Browse files Browse the repository at this point in the history
…pyright

added urn_id for company and gateway.
  • Loading branch information
LahariMIBS authored Jun 27, 2024
2 parents 59d648b + af6da74 commit ec9ba37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/endpoints/company/company.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class CompanyService {
last_updated_at: moment().format()
})
await companyData.save();
return { status: 201, message: 'Company created successfully' };
return { status: 201, message: 'Company created successfully', urn_id: ifricId };
} else{
return { status: 404, message: 'Urn ID does not exist' };
}
Expand Down
2 changes: 1 addition & 1 deletion backend/src/endpoints/gateway/gateway.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class GatewayService {
last_updated_at: moment().format()
})
await serverData.save();
return { status: 201, message: 'Factory Server created successfully' };
return { status: 201, message: 'Factory Server created successfully', urn_id: ifricId };
} else{
return { status: 404, message: 'Urn ID does not exist' };
}
Expand Down

0 comments on commit ec9ba37

Please sign in to comment.