20219: Adjust logFileToLogType argument type to only CollectionFile and adjust
[arvados-workbench2.git] / src / services / log-service / log-service.ts
index b96d8223ffd96ae1bd536c61bde147a3bfc783b1..f2424715f1c3a575166c9e95ce88c669f5609df1 100644 (file)
@@ -8,7 +8,7 @@ import { CommonResourceService } from "services/common-service/common-resource-s
 import { ApiActions } from "services/api/api-actions";
 import { WebDAV } from "common/webdav";
 import { extractFilesData } from "services/collection-service/collection-service-files-response";
-import { CollectionDirectory, CollectionFile } from "models/collection-file";
+import { CollectionFile } from "models/collection-file";
 
 export type LogFragment = {
     logType: LogEventType;
@@ -50,4 +50,4 @@ export class LogService extends CommonResourceService<LogResource> {
     }
 }
 
-export const logFileToLogType = (file: CollectionFile | CollectionDirectory) => (file.name.replace(/\.(txt|json)$/, '') as LogEventType);
+export const logFileToLogType = (file: CollectionFile) => (file.name.replace(/\.(txt|json)$/, '') as LogEventType);