Skip to content

Commit

Permalink
add google support for hivemind module
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Apr 23, 2024
1 parent 5db5419 commit eb86979
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
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": "3.0.52",
"version": "3.0.53",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/Module.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface IModule {
options?: {
platforms: Array<{
platform: Types.ObjectId;
name: 'discord';
name: 'discord' | 'google';
metadata?: Record<string, any>; // dynamic object since structure can change
}>;
};
Expand All @@ -15,7 +15,7 @@ export interface IModuleUpdateBody {
options?: {
platforms: Array<{
platform: Types.ObjectId;
name: 'discord';
name: 'discord' | 'google';
metadata?: Record<string, any>; // dynamic object since structure can change
}>;
};
Expand Down
2 changes: 1 addition & 1 deletion src/models/schemas/Module.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const moduleSchema = new Schema<IModule, ModuleModel>(
name: {
type: String,
required: true,
enum: ['discord'],
enum: ['discord', 'google'],
},
},
],
Expand Down
1 change: 1 addition & 0 deletions src/models/schemas/Platform.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const platformSchema = new Schema<IPlatform, PlatformModel>(
name: {
type: String,
required: true,
enum: ['google', 'discord', 'twitter'],
},
metadata: {
type: Schema.Types.Mixed,
Expand Down

0 comments on commit eb86979

Please sign in to comment.