Skip to content

Commit

Permalink
Merge pull request #160 from TogetherCrew/update-community-interface
Browse files Browse the repository at this point in the history
update interfaces
  • Loading branch information
cyri113 authored Apr 8, 2024
2 parents d22f5dc + 87bd331 commit ecf3e89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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.40",
"version": "3.0.41",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/interfaces/Community.interface.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { type Model, type Types } from 'mongoose';
import { type IGuildMember } from './GuildMember.interface';
import { type IRole } from './Role.interface';

export interface ICommunityRoles {
roleType: 'view' | 'admin';
source: {
platform: 'discord';
identifierType: 'member' | 'role';
identifierValues: string[];
identifierValues: string[] | IGuildMember[] | IRole[];
platformId: Types.ObjectId;
};
}
Expand Down

0 comments on commit ecf3e89

Please sign in to comment.