Skip to content

Commit

Permalink
[FEATURE]: add twitterIsInProgress field
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Oct 2, 2023
1 parent abbeca4 commit c84129f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ User {
twitterUsername?: string,
twitterProfileImageUrl?: string,
twitterConnectedAt?:string,
twitterIsInProgress?:boolean

}
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@togethercrew.dev/db",
"version": "2.5.01",
"version": "2.5.02",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/interfaces/User.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export interface IUser {
twitterUsername?: string | null;
twitterProfileImageUrl?: string | null;
twitterConnectedAt?: Date | null;
twitterIsInProgress?: boolean | null;
}

export interface IUserUpdateBody {
Expand All @@ -29,6 +30,7 @@ export interface IUserUpdateBody {
twitterUsername?: string | null;
twitterProfileImageUrl?: string | null;
twitterConnectedAt?: Date | null;
twitterIsInProgress?: boolean | null;
email?: string;
verified?: boolean;
}
Expand Down
3 changes: 3 additions & 0 deletions src/models/schemas/User.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const userSchema = new Schema<IUser, UserModel>(
twitterConnectedAt: {
type: Date,
},
twitterIsInProgress: {
type: Boolean,
},
},
{ timestamps: true },
);
Expand Down

0 comments on commit c84129f

Please sign in to comment.