qa: retain required Slack history timestamps

This commit is contained in:
Dallin Romney
2026-08-24 16:06:00 -07:00
parent c5bbd85297
commit 7e69a9111b
@@ -71,7 +71,7 @@ export async function listSlackMessages(params: {
client: WebClient;
oldestTs: string;
}) {
const messages: SlackMessage[] = [];
const messages: NonNullable<ReturnType<typeof slackHistorySchema.parse>["messages"]> = [];
let cursor: string | undefined;
for (let page = 0; page < SLACK_QA_CHANNEL_HISTORY_MAX_PAGES; page += 1) {
const history = slackHistorySchema.parse(