Skip to content

Commit

Permalink
Merge branch 'main' of github.com:jek821/CommUnity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan231111 committed Nov 9, 2024
2 parents fbcd0e3 + ad09c88 commit be7ccb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion database_funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ export async function getCommentsWithUpvotes(threadId) {
const threadName = threadDoc.data().thread_name;
const commentsRef = collection(db, "Threads", threadId, "Comments");
const snapshot = await getDocs(commentsRef);
const threadZip = threadDoc.data().zip_code;
const threadCity = threadDoc.data().city;

const commentsDict = { thread_name: threadName };
const commentsDict = { thread_name: threadName, thread_zip: threadZip, thread_city: threadCity };

snapshot.forEach((doc) => {
const data = doc.data();
Expand Down

0 comments on commit be7ccb0

Please sign in to comment.