mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-08-22 08:34:04 -05:00
fixed a few typos
This commit is contained in:
committed by
jay.poff@outlook.com
parent
98bc104ef0
commit
187355fd04
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user