add methods for accessing and storing tasks

This commit is contained in:
marlon-erler
2024-07-22 13:09:33 +02:00
parent b20f7c072e
commit 3304949d1a
4 changed files with 144 additions and 16 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ export default class FileModel {
};
getFile = (fileId: string): File | null => {
const filePath = this.getFilePath(fileId);
const filePath: string[] = this.getFilePath(fileId);
const fileOrNull: File | null = this.storageModel.readStringifiable(
filePath,
FileReference
@@ -107,7 +107,7 @@ export default class FileModel {
file: File,
fileContentName: string
): FileContent<string> | null => {
const filePath = this.getFileContentPath(file, fileContentName);
const filePath: string[] = this.getFileContentPath(file, fileContentName);
const fileContentOrNull: FileContent<string> | null =
this.storageModel.readStringifiable(filePath, FileContentReference);
return fileContentOrNull;
@@ -118,7 +118,7 @@ export default class FileModel {
this.chatModel = chatModel;
this.storageModel = storageModel;
this.taskModel = new TaskModel(chatModel, this);
this.taskModel = new TaskModel(this.storageModel, chatModel, this);
}
// utility