mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 20:17:25 +08:00
fix: addresses issue with creating stories (#2442)
This commit is contained in:
committed by
Kim Gardner
parent
fdc6afec42
commit
4e548e8fbf
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user