Skip to content

Commit

Permalink
fix: update key to string for 'getPublicScreenTimeData' function
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbrayo committed Aug 23, 2024
1 parent bf70e70 commit 91524d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/firebase/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function getScreenTimeData(

export async function getPublicScreenTimeData(
since: Date | null = null
): Promise<{ [key: number]: ScreenTimeSummary[] } | null> {
): Promise<{ [key: string]: ScreenTimeSummary[] } | null> {
// Returns all public screentime data, for all users, since `since`, aggregated by user
const q = query(
collection(db, 'screentime'),
Expand Down

0 comments on commit 91524d0

Please sign in to comment.