diff --git a/web/ce/types/projects/index.ts b/web/ce/types/projects/index.ts index 244d8c4df3..9fb35777a3 100644 --- a/web/ce/types/projects/index.ts +++ b/web/ce/types/projects/index.ts @@ -1 +1,2 @@ export * from "./projects"; +export * from "./project-activity"; diff --git a/web/ce/types/projects/project-activity.ts b/web/ce/types/projects/project-activity.ts new file mode 100644 index 0000000000..ed75a6b9c8 --- /dev/null +++ b/web/ce/types/projects/project-activity.ts @@ -0,0 +1,25 @@ +export interface TProjectActivity { + id: string; + content: string; + createdAt: string; + updatedAt: string; + userId: string; + projectId: string; + created_at: string; + field: string; + verb: string; + actor_detail: { + display_name: string; + id: string; + }; + workspace_detail: { + slug: string; + }; + project_detail: { + name: string; + }; + new_value: string; + old_value: string; + project: string; + new_identifier?: string; +} diff --git a/web/core/local-db/utils/utils.ts b/web/core/local-db/utils/utils.ts index 6cd5f3033c..b0330e057a 100644 --- a/web/core/local-db/utils/utils.ts +++ b/web/core/local-db/utils/utils.ts @@ -174,7 +174,7 @@ export const clearOPFS = async (force = false) => { return; } // ts-ignore - for await (const entry of root.values()) { + for await (const entry of (root as any)?.values()) { if (entry.kind === "directory" && entry.name.startsWith(".ahp-")) { // A lock with the same name as the directory protects it from // being deleted.