Skip to content

Commit

Permalink
Merge pull request #142 from TogetherCrew/feature/announcements
Browse files Browse the repository at this point in the history
fix: we should have username instead of userId
  • Loading branch information
cyri113 authored Jan 3, 2024
2 parents 4def4a3 + b49cd5b commit 850328c
Show file tree
Hide file tree
Showing 2 changed files with 2 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.22",
"version": "3.0.23",
"description": "All interactions with DB",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/Announcement.interface.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type Model, type Types } from 'mongoose';

type IDiscordOptions = { channelIds: string[] } | { roleIds: string[] } | { userIds: string[] };
type IDiscordOptions = { channelIds?: string[] } | { roleIds?: string[] } | { usernames?: string[] };

interface IAnnouncementData<T> {
platform: Types.ObjectId;
Expand Down

0 comments on commit 850328c

Please sign in to comment.