Skip to content

Commit

Permalink
Updated package.json and made username unique
Browse files Browse the repository at this point in the history
  • Loading branch information
FOSSforlife committed Apr 18, 2020
1 parent 984d5fd commit 4083e1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "patrician-api",
"version": "0.1.0",
"version": "0.2.0-canary.0",
"description": "Patrician API",
"license": "MIT",
"author": "Patrician Team",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/user/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AccountSettings } from '../../interfaces/account-settings';

@Model()
export class User extends BaseModel {
@StringField()
@StringField({ unique: true })
username!: string;

@EmailField({ nullable: true })
Expand Down

0 comments on commit 4083e1d

Please sign in to comment.