mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-08-28 11:34:00 -05:00
fixed a few typos
This commit is contained in:
committed by
jay.poff@outlook.com
parent
4b1c060445
commit
1d933c0d6f
@@ -70,7 +70,6 @@ async function getPostsByCommunity(community, numberOfPosts) {
|
||||
|
||||
async function getPostsByCommunityKey(community, numberOfPosts, search_key) {
|
||||
verifyConnected();
|
||||
console.log(community.title_id);
|
||||
return POST.find({
|
||||
title_id: community.title_id,
|
||||
search_key: search_key
|
||||
|
||||
@@ -10,12 +10,9 @@ 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