feat: added closedAt to createStory mutation (#2496)

This commit is contained in:
Wyatt Johnson
2019-08-23 14:01:43 -04:00
committed by Kim Gardner
parent 1c75b7659d
commit 2edabf44c7
3 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -222,7 +222,9 @@ export async function findOrCreateStory(
return upsertStory(mongo, tenantID, { url }, now);
}
export type CreateStoryInput = Partial<Pick<Story, "metadata" | "scrapedAt">>;
export type CreateStoryInput = Partial<
Pick<Story, "metadata" | "scrapedAt" | "closedAt">
>;
export async function createStory(
mongo: Db,