Skip to content

Commit

Permalink
Merge pull request #177 from TogetherCrew/module-platform-agnostic-up…
Browse files Browse the repository at this point in the history
…date

feat: make modules platform agnostic
cyri113 authored Oct 31, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents b93c01a + 02a5754 commit 10d571c
Showing 3 changed files with 4 additions and 3 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.70",
"version": "3.0.71",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
1 change: 1 addition & 0 deletions src/config/enums.ts
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ export enum PlatformNames {
export enum ModuleNames {
Hivemind = 'hivemind',
ViolationDetection = 'violationDetection',
DynamicNft = 'dynamicNft',
}

export enum HivemindPlatformNames {
4 changes: 2 additions & 2 deletions src/models/schemas/Module.schema.ts
Original file line number Diff line number Diff line change
@@ -20,16 +20,16 @@ const moduleSchema = new Schema<IModule, ModuleModel>(
{
platform: {
type: Schema.Types.ObjectId,
required: true,
ref: 'Platform',
default: null,
},
metadata: {
type: Schema.Types.Mixed,
},
name: {
type: String,
required: true,
enum: Object.values(PlatformNames),
default: null,
},
},
],

0 comments on commit 10d571c

Please sign in to comment.