Skip to content

Commit

Permalink
Merge pull request #51 from atlp-rwanda/bg-documentation-fix-#50
Browse files Browse the repository at this point in the history
50 debug documentation
  • Loading branch information
Habinezajanvier authored May 7, 2024
2 parents d197ced + 9be2617 commit 6a8a99c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/database/models/userModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export class UserModel {
@Column()
email: string;

@Column()
@Column({ nullable: true })
password: string;

@Column({ default: 'buyer' })
userType: 'vendor' | 'buyer';

@Column({ default: false })
isVerified: boolean;

constructor(user: Partial<UserModel>) {
Object.assign(this, user);
}
Expand Down
3 changes: 2 additions & 1 deletion src/docs/swaggerconfig.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import swaggerJsdoc from 'swagger-jsdoc';

import dotenv from 'dotenv';
dotenv.config();
const options = {
definition: {
openapi: '3.0.0',
Expand Down

0 comments on commit 6a8a99c

Please sign in to comment.