Skip to content

Commit 248f62a

Browse files
authored
Merge pull request #132 from TogetherCrew/use-isInProgress-in-metadata
[FEATURE]: move isInProgress to metadata
2 parents a0b0671 + a1d4007 commit 248f62a

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Platform {
6767
community: Types.ObjectId,
6868
metadata?: Record<string, any>, // dynamic object since structure can change
6969
disconnectedAt?: Date | null,
70-
isInProgress?: boolean;
70+
connectedAt?: Date | null;
7171
}
7272
```
7373
### Heatmap interface

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@togethercrew.dev/db",
3-
"version": "3.0.16",
3+
"version": "3.0.17",
44
"description": "All interactions with DB",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/interfaces/Platfrom.interface.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ export interface IPlatform {
55
community: Types.ObjectId;
66
metadata?: Record<string, any>; // dynamic object since structure can change
77
disconnectedAt?: Date | null;
8-
isInProgress?: boolean;
9-
connectedAt?: Date;
8+
connectedAt?: Date | null;
109
}
1110

1211
export interface IPlatformUpdateBody {
1312
name?: string;
1413
community?: Types.ObjectId;
1514
metadata?: Record<string, any>;
1615
disconnectedAt?: Date | null;
17-
isInProgress?: boolean;
1816
}
1917

2018
export interface PlatformModel extends Model<IPlatform> {

src/models/schemas/Platform.schema.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ const platformSchema = new Schema<IPlatform, PlatformModel>(
2525
type: Date,
2626
default: new Date(),
2727
},
28-
isInProgress: {
29-
type: Boolean,
30-
default: true,
31-
},
3228
},
3329

3430
{ timestamps: true },

0 commit comments

Comments
 (0)