import { Service } from "../../constants"; import { formatDate } from "../date"; export const findFilePath = (slug: string, createdAt: Date, userId: string) => { const endPoint = `${slug}/${formatDate(createdAt).replaceAll('-', '/')}` return Service.Cdn.Read + `${endPoint}/${userId}.jpg?new=${Date.now()}`; }