directory
This commit is contained in:
parent
e2cef4fc6d
commit
a2b3a3108e
@ -80,7 +80,7 @@ export const getAllDirectory = async (req, res) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const directory = await directoryModel.find({ status: "true" });
|
const directory = await directoryModel.find({ status: true });
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
success: true,
|
success: true,
|
||||||
msg: " fetch Successfully!!",
|
msg: " fetch Successfully!!",
|
||||||
@ -101,6 +101,7 @@ export const getOneDirectory = async (req, res) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const directory = await directoryModel.findById(req.params.id);
|
const directory = await directoryModel.findById(req.params.id);
|
||||||
|
console.log(directory.status)
|
||||||
// console.log(category)
|
// console.log(category)
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
success: true,
|
success: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user