fixes
This commit is contained in:
@@ -2,12 +2,17 @@ import { error } from "elysia";
|
||||
import db from "../../db";
|
||||
import { commentsTable } from "../../db/schema";
|
||||
|
||||
export async function createComment(
|
||||
sessionId: string,
|
||||
userId: string,
|
||||
text: string
|
||||
) {
|
||||
export async function createComment({
|
||||
sessionId,
|
||||
userId,
|
||||
text,
|
||||
}: {
|
||||
sessionId: string;
|
||||
userId: string;
|
||||
text: string;
|
||||
}) {
|
||||
try {
|
||||
console.log(sessionId, userId, text);
|
||||
const comment = await db
|
||||
.insert(commentsTable)
|
||||
.values({
|
||||
|
||||
Reference in New Issue
Block a user