Skip to content

Commit a05214e

Browse files
committed
fix: update key to string for 'getPublicScreenTimeData' function
1 parent eacfb45 commit a05214e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function getScreenTimeData(
9292

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

0 commit comments

Comments
 (0)