fix: addresses issue with creating stories (#2442)

This commit is contained in:
Wyatt Johnson
2019-08-02 21:02:47 +00:00
committed by Kim Gardner
parent fdc6afec42
commit 4e548e8fbf
4 changed files with 78 additions and 21 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ export async function retrieveManyStoriesByURL(
export type UpdateStoryInput = Omit<
Partial<Story>,
"id" | "tenantID" | "createdAt"
"id" | "tenantID" | "closedAt" | "createdAt"
>;
export async function updateStory(
@@ -7,6 +7,7 @@ export async function createMongoClient(config: Config): Promise<MongoClient> {
try {
return await MongoClient.connect(config.get("mongodb"), {
useNewUrlParser: true,
ignoreUndefined: true,
});
} catch (err) {
throw new InternalError(err, "could not connect to mongodb");