Skip to content

Commit

Permalink
fix: check if row.timestamp is Date
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Dec 21, 2024
1 parent 770b957 commit 5d049e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/src/services/OldAppNameService.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class OldAppNameService extends BaseService {

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

0 comments on commit 5d049e8

Please sign in to comment.