Skip to content

Commit 31efe7e

Browse files
committed
make methods public
1 parent 6bc6f18 commit 31efe7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gateway/src/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ export function currentScopeIntervals(): ScopeIntervals {
259259
}
260260

261261
const MS_PER_DAY = 24 * 60 * 60 * 1000
262-
function dateAsInt(date: Date): number {
262+
export function dateAsInt(date: Date): number {
263263
return Math.floor(date.getTime() / MS_PER_DAY)
264264
}
265265

266-
function intAsDate(days: number): Date {
266+
export function intAsDate(days: number): Date {
267267
return new Date(days * MS_PER_DAY)
268268
}
269269

0 commit comments

Comments
 (0)