diff --git a/package.json b/package.json index e0cefa7..4cff34c 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/interfaces/Announcement.interface.ts b/src/interfaces/Announcement.interface.ts index 773db59..ba71014 100644 --- a/src/interfaces/Announcement.interface.ts +++ b/src/interfaces/Announcement.interface.ts @@ -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 { platform: Types.ObjectId;