Skip to content

Commit

Permalink
feat: location tagging ccrsxx#48
Browse files Browse the repository at this point in the history
  • Loading branch information
h-lunah committed Dec 25, 2024
2 parents 1e1fbf9 + ed13699 commit 0139e51
Show file tree
Hide file tree
Showing 12 changed files with 134,518 additions and 218 deletions.
14 changes: 14 additions & 0 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,20 @@
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "tweets",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "createdBy",
"order": "ASCENDING"
},
{
"fieldPath": "location",
"order": "ASCENDING"
}
]
}
],
"fieldOverrides": [
Expand Down
1 change: 1 addition & 0 deletions functions/src/types/tweet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type Tweet = {
updatedAt: Timestamp | null;
userReplies: number;
userRetweets: string[];
location: string;
};

export const tweetConverter: FirestoreDataConverter<Tweet> = {
Expand Down
Loading

0 comments on commit 0139e51

Please sign in to comment.