fix: check if row.timestamp is Date

This commit is contained in:
KernelDeimos 2024-12-21 14:57:37 -05:00
parent 770b957b42
commit 5d049e8f06

View File

@ -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'
);