Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pm-stack/aggregator/src/digest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import { mkdir, readFile, readdir, writeFile } from "node:fs/promises";
import { join } from "node:path";
import { needsDrewOwnerItems, type NeedsDrewCensus } from "./needs-drew.ts";
import { needsUserOwnerItems, type NeedsUserCensus } from "./needs-drew.ts";
import type { ProjectPoolItem, ProvenanceDetail, QuotaPool, QuotaView } from "./model.ts";
import { poolState, windowPercent } from "./derive.ts";

Expand Down Expand Up @@ -68,7 +68,7 @@ export interface Digest {
export interface DigestInputs {
pool: ProjectPoolItem[];
/** Null = the census source could not be read at all. */
needsDrew: NeedsDrewCensus | null;
needsDrew: NeedsUserCensus | null;
/** Null = the quota view could not be built. */
quota: QuotaView | null;
/** Structured per-facet freshness, when the source provides it. */
Expand Down Expand Up @@ -230,7 +230,7 @@ export function buildDigest(inputs: DigestInputs): Digest {
// A choice an agent parked on the owner is fleet work and is not
// listed here; the attention page counts those separately.
const items = cap(
needsDrewOwnerItems(inputs.needsDrew).map(
needsUserOwnerItems(inputs.needsDrew).map(
(i): DigestItem => ({
ref: i.ref,
title: i.title,
Expand Down