diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-10-26 18:02:27 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-10-26 18:02:27 +0300 |
commit | 0cf116c5ad659cefc03f88b2e6e9b6f839ba0a71 (patch) | |
tree | 77372bbc158d698112067aa636d00d0333b62cce | |
parent | c88a72e97ee79653e892f3566d22c88c96581ac4 (diff) |
-rw-r--r-- | src/database/postgres.ts | 4 |
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 { |