(null);
@@ -102,7 +100,6 @@ export default function ProjectListItem({
) : (
<>
| {filename} |
- {new Date(createdAt).toLocaleString()} |
{new Date(updatedAt).toLocaleString()} |
>} A promise that resolves to an array of ProjectFile objects,
* each representing a file in the 'uploads' folder with its metadata.
- * The metadata includes the filename, creation time (createdAt),
- * and last modification time (updatedAt) of each file.
+ * The metadata includes the filename, creation or overwriting time (updatedAt)
*
* @throws {Error} Throws an error if there is an issue in reading the directory or fetching file statistics.
*/
@@ -83,7 +82,6 @@ export async function getProjectFiles(): Promise {
projectFiles.push({
filename: removeFileExtension(file),
- createdAt: stats.birthtime.toISOString(),
updatedAt: stats.mtime.toISOString(),
});
}
diff --git a/apps/server/src/services/project-service/__tests__/ProjectService.test.ts b/apps/server/src/services/project-service/__tests__/ProjectService.test.ts
index 877a2288f..dc0ab6fb9 100644
--- a/apps/server/src/services/project-service/__tests__/ProjectService.test.ts
+++ b/apps/server/src/services/project-service/__tests__/ProjectService.test.ts
@@ -23,7 +23,6 @@ describe('getProjectFiles test', () => {
const expectedFiles = ['file1', 'file2', 'file3'].map((file) => ({
filename: file,
- createdAt: new Date('2020-01-01').toISOString(),
updatedAt: new Date('2021-01-01').toISOString(),
}));
diff --git a/packages/types/src/api/ontime-controller/BackendResponse.type.ts b/packages/types/src/api/ontime-controller/BackendResponse.type.ts
index 699c34281..4cd3f09ce 100644
--- a/packages/types/src/api/ontime-controller/BackendResponse.type.ts
+++ b/packages/types/src/api/ontime-controller/BackendResponse.type.ts
@@ -15,7 +15,6 @@ export interface GetInfo {
export type ProjectFile = {
filename: string;
- createdAt: string;
updatedAt: string;
};
|