mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 14:27:30 +00:00
Review fixes
This commit is contained in:
@@ -2936,7 +2936,7 @@ interface OrgUpdateEvent {
|
|||||||
interface ProjectCreateEvent {
|
interface ProjectCreateEvent {
|
||||||
type: EventType.CREATE_PROJECT;
|
type: EventType.CREATE_PROJECT;
|
||||||
metadata: {
|
metadata: {
|
||||||
projectName: string;
|
name: string;
|
||||||
slug?: string;
|
slug?: string;
|
||||||
type: ProjectType;
|
type: ProjectType;
|
||||||
};
|
};
|
||||||
@@ -2959,8 +2959,8 @@ interface ProjectUpdateEvent {
|
|||||||
interface ProjectDeleteEvent {
|
interface ProjectDeleteEvent {
|
||||||
type: EventType.DELETE_PROJECT;
|
type: EventType.DELETE_PROJECT;
|
||||||
metadata: {
|
metadata: {
|
||||||
projectId: string;
|
id: string;
|
||||||
projectName: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -270,10 +270,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
|||||||
projectId: req.params.workspaceId,
|
projectId: req.params.workspaceId,
|
||||||
event: {
|
event: {
|
||||||
type: EventType.DELETE_PROJECT,
|
type: EventType.DELETE_PROJECT,
|
||||||
metadata: {
|
metadata: workspace
|
||||||
projectId: workspace.id,
|
|
||||||
projectName: workspace.name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -212,7 +212,10 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
|||||||
projectId: project.id,
|
projectId: project.id,
|
||||||
event: {
|
event: {
|
||||||
type: EventType.CREATE_PROJECT,
|
type: EventType.CREATE_PROJECT,
|
||||||
metadata: req.body
|
metadata: {
|
||||||
|
...req.body,
|
||||||
|
name: req.body.projectName
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -264,10 +267,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
|||||||
projectId: project.id,
|
projectId: project.id,
|
||||||
event: {
|
event: {
|
||||||
type: EventType.DELETE_PROJECT,
|
type: EventType.DELETE_PROJECT,
|
||||||
metadata: {
|
metadata: project
|
||||||
projectId: project.id,
|
|
||||||
projectName: project.name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user