aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/database/postgres.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/postgres.ts b/src/database/postgres.ts
index 9ea65dc..8c87e00 100644
--- a/src/database/postgres.ts
+++ b/src/database/postgres.ts
@@ -67,7 +67,7 @@ create table ${name}.comment(
content text NOT NULL,
image text,
imagetype text,
- constraints fk_tid
+ constraint fk_tid
foreign key(tid)
references ${name}.thread(id)
);`;
@@ -158,7 +158,7 @@ insert into ${board}.comment (
);`;
client.query(query, (err, res) => {
- let r: { status: number, data: any } = { status: 404, data: undefined };
+ let r: { status: number, data: any } = { status: 500, data: undefined };
if (err) {
r.data = err.message;
} else {