feat: signup enhancements; more extensions to schema

This commit is contained in:
Wyatt Johnson
2018-07-10 15:54:52 -06:00
parent d46145f04c
commit 6efe36ceaa
16 changed files with 278 additions and 63 deletions
+1 -6
View File
@@ -2,7 +2,6 @@ import { Db } from "mongodb";
import { Omit } from "talk-common/types";
import {
Comment,
CommentStatus,
createComment,
CreateCommentInput,
@@ -13,11 +12,7 @@ export type CreateComment = Omit<
"status" | "action_counts"
>;
export async function create(
db: Db,
tenantID: string,
input: CreateComment
): Promise<Comment> {
export async function create(db: Db, tenantID: string, input: CreateComment) {
// TODO: run the comment through the moderation phases.
const comment = await createComment(db, tenantID, {
status: CommentStatus.ACCEPTED,