-
Notifications
You must be signed in to change notification settings - Fork 37.6k
Closed
Labels
*questionIssue represents a question, should be posted to StackOverflow (VS Code)Issue represents a question, should be posted to StackOverflow (VS Code)
Description
In first file when i hold ctrl on "blogModel" and click it open the other file that is ok and normal. But the problem is when i click on "getBlogs",it don't get navigate to the function defined in other file.Instead nothing happens when you hold ctrl and click.I first case i get a underline under the function name when i hold ctrl but in 2nd case i don't get
FILE 1st:
var blogModel = require('../models/blog.model');
var logger = require('../util/logger');
var getBlogs = function(request, response) {
**blogModel.getBlogs**(request, response, function(error, output) {
if (error) {
return response.status(_.get(error, 'statusCode', 500)).send({
status: false,
data: error
});
} else {
var finalResponse = {
status: true,
data: output
};
return response.status(200).send(finalResponse);
}
});
};
FILE 2nd:blog.model.js
var blogModel = require('../models/blog.model');
var logger = require('../util/logger');
var getBlogs = function(request, response) {
blogModel.getBlogs(request, response, function(error, output) {
if (error) {
return response.status(_.get(error, 'statusCode', 500)).send({
status: false,
data: error
});
} else {
var finalResponse = {
status: true,
data: output
};
return response.status(200).send(finalResponse);
}
});
};
exports.getBlogs = getBlogs;
Metadata
Metadata
Assignees
Labels
*questionIssue represents a question, should be posted to StackOverflow (VS Code)Issue represents a question, should be posted to StackOverflow (VS Code)