feat: add external dep sorting to moderation queue (#6161)

* feat: add external dep sorting to moderation queue

* prepr
This commit is contained in:
Prospector
2026-05-21 16:40:13 -07:00
committed by GitHub
parent aa7dd1d210
commit 893ec00fc6
3 changed files with 60 additions and 12 deletions
+4 -1
View File
@@ -199,17 +199,20 @@ export type ModerationOwnership = ModerationOwnershipUser | ModerationOwnershipO
export interface ProjectWithOwnership {
ownership: ModerationOwnership
external_dependencies_count: number
[key: string]: any
}
export interface ModerationProject {
project: any
ownership: ModerationOwnership | null
external_dependencies_count: number
}
export function toModerationProjects(projects: ProjectWithOwnership[]): ModerationProject[] {
return projects.map(({ ownership, ...project }) => ({
return projects.map(({ ownership, external_dependencies_count, ...project }) => ({
project,
ownership: ownership ?? null,
external_dependencies_count: external_dependencies_count,
}))
}