Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

124 created updated endpoint for infrastructure #188

Merged

Conversation

deepti-50
Copy link
Contributor

@deepti-50 deepti-50 commented Jul 6, 2023

Description

Briefly describe the changes made in this pull request.

Fixes

fixes: #124

Checklist

  • Code follows project's style guidelines.
  • Changes are documented appropriately.

@deepti-50 deepti-50 closed this Jul 6, 2023
@deepti-50 deepti-50 reopened this Jul 6, 2023
@Hitansh159 Hitansh159 changed the base branch from main to development July 6, 2023 15:49
@@ -1,4 +1,5 @@
import { createInfrastructure } from "#services/infrastructure";
import infrastructure from "#models/infrastructure";
import { createInfrastructure, updateinfrastructure } from "#services/infrastructure";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updateInfrastructure

name , type, wing, floor, capacity
}= req.body;
try{
const updateinfrastructure=await updateinfrastructure(filter,data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updateInfrastructure is a boolean

export async function updateinfrastructure(filter,data){
const updateInfrastructure = await infrastructure.update({filter,data
});
if(updateInfrastructure.name === name){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updateInfrastructure is boolean

@Hitansh159 Hitansh159 merged commit 5739267 into tcet-opensource:development Jul 9, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create add endpoint for Infrastructure
2 participants