Skip to content

Commit 4cfbd57

Browse files
authored
Merge pull request #161 from TogetherCrew/update-community-interface
Update community interface
2 parents ecf3e89 + 1ce8a46 commit 4cfbd57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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.41",
3+
"version": "3.0.42",
44
"description": "All interactions with DB",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/interfaces/Community.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface ICommunityRoles {
77
source: {
88
platform: 'discord';
99
identifierType: 'member' | 'role';
10-
identifierValues: string[] | IGuildMember[] | IRole[];
10+
identifierValues: string[] | IGuildMember[] | IRole[] | any[];
1111
platformId: Types.ObjectId;
1212
};
1313
}

src/models/schemas/Community.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const communitySchema = new Schema<ICommunity, CommunityModel>(
4949
},
5050
identifierValues: [
5151
{
52-
type: String,
52+
type: Schema.Types.Mixed,
5353
required: true,
5454
},
5555
],

0 commit comments

Comments
 (0)