fixed a few typos

This commit is contained in:
CaramelKat
2020-04-26 04:33:49 -05:00
committed by jay.poff@outlook.com
parent 98bc104ef0
commit 187355fd04
2 changed files with 8 additions and 2 deletions

View File

@@ -15,10 +15,13 @@ const CommunitySchema = new Schema({
},
icon: String,
title_ids: {
type: [Number],
type: [String],
default: undefined
},
title_id: {
type: [String],
default: undefined
},
title_id: String,
community_id: String,
is_recommended: {
type: Number,

View File

@@ -10,9 +10,12 @@ router.get('/0/posts', function (req, res) {
/* Parse out parameters from URL and headers */
const paramPack = processHeaders.data.decodeParamPack(req.headers["x-nintendo-parampack"]);
//"[0:1]=1407375153523200"
console.log(paramPack.title_id);
let community = await database.getCommunityByTitleID(paramPack.title_id);
console.log(community.title_id);
/* Go to the database for posts. */
let posts = await database.getPostsByCommunity(community, parseInt(req.query.limit));
console.log(posts);
/* Build formatted response and send it off. */
let response = await comPostGen.PostsResponse(posts, community);