feat: add domains, ideas, layouts, widgets API modules
- Add DomainsModule with full CRUD, search, and activity logging - Add IdeasModule with quick capture endpoint - Add LayoutsModule for user dashboard layouts - Add WidgetsModule for widget definitions (read-only) - Update ActivityService with domain/idea logging methods - Register all new modules in AppModule
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { Injectable, NotFoundException } from "@nestjs/common";
|
||||
import { Prisma } from "@prisma/client";
|
||||
import { PrismaService } from "../prisma/prisma.service";
|
||||
import { ActivityService } from "../activity/activity.service";
|
||||
import { ProjectStatus } from "@prisma/client";
|
||||
@@ -177,7 +178,7 @@ export class ProjectsService {
|
||||
id,
|
||||
workspaceId,
|
||||
},
|
||||
data: updateProjectDto,
|
||||
data: updateProjectDto as any,
|
||||
include: {
|
||||
creator: {
|
||||
select: { id: true, name: true, email: true },
|
||||
@@ -190,7 +191,7 @@ export class ProjectsService {
|
||||
|
||||
// Log activity
|
||||
await this.activityService.logProjectUpdated(workspaceId, userId, id, {
|
||||
changes: updateProjectDto,
|
||||
changes: updateProjectDto as Prisma.JsonValue,
|
||||
});
|
||||
|
||||
return project;
|
||||
|
||||
Reference in New Issue
Block a user