Fix get time on non date var (#14361)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
// Temporary quick workaround until we eject from nestjs-query that seems to convert date to string and vice-versa
|
||||
export const transpileToDateIfNot = (dateToVerify: string | Date): Date =>
|
||||
dateToVerify instanceof Date ? dateToVerify : new Date(dateToVerify);
|
||||
Reference in New Issue
Block a user