Skip to content

Commit 5d049e8

Browse files
committed
fix: check if row.timestamp is Date
1 parent 770b957 commit 5d049e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/src/services/OldAppNameService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class OldAppNameService extends BaseService {
2929

3030
// Check if the app has been renamed in the last N months
3131
const [row] = rows;
32-
const timestamp = new Date(
32+
const timestamp = row.timestamp instanceof Date ? row.timestamp : new Date(
3333
// Ensure timestamp ir processed as UTC
3434
row.timestamp.endsWith('Z') ? row.timestamp : row.timestamp + 'Z'
3535
);

0 commit comments

Comments
 (0)