Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kononnable committed Aug 22, 2020
1 parent 834d1f1 commit f46c0f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/drivers/PostgresDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export default class PostgresDriver extends AbstractDriver {
if (resp.isunique === "1") options.unique = true;

const generated =
resp.isidentity === "YES" || resp.is_identity === "YES" ? true : undefined;
resp.isidentity === "YES" || resp.is_identity === "YES"
? true
: undefined;
const defaultValue = generated
? undefined
: PostgresDriver.ReturnDefaultValueFunction(
Expand Down
2 changes: 1 addition & 1 deletion test/integration/github-issues/65/entity/PostReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ export class PostReader {
post: Post;

@RelationId((postReader: PostReader) => postReader.post)
postId: number[];
postId: number;
}

0 comments on commit f46c0f8

Please sign in to comment.