what have i done

This commit is contained in:
hippoz 2020-11-09 21:55:14 +02:00
parent c87c7f98d3
commit c293389359
3 changed files with 8 additions and 3 deletions

5
.gitignore vendored Executable file
View file

@ -0,0 +1,5 @@
node_modules
node_modules/
node_modules/*
secret.js

View file

@ -100,7 +100,7 @@ app.get('/category/:category/info', [
}
const categoryId = req.params.category;
const category = await Category.findById(categoryId).populate('posts.creator');
const category = await Category.findById(categoryId).populate('posts.creator', 'username _id');
if (!category) {
res.status(404).json({

View file

@ -1,8 +1,8 @@
module.exports = {
ports: {
mainServerPort: 25,
mainServerPort: 3000,
},
address: '188.25.251.46',
address: 'localhost',
mongoUrl: 'mongodb://localhost:27017/app',
bcryptRounds: 10,
roleMap: {