Skip to content

Commit

Permalink
fix(functions): fixed import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
goratt12 committed Jun 25, 2024
1 parent 8958c3e commit 970ead4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions/src/Integrations/firebase-discord.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios, { AxiosResponse, AxiosError } from 'axios'
import { DiscordWebhookPayload } from '../models'
import { IDiscordWebhookPayload } from '../models'

const DISCORD_WEBHOOK_URL = process.env.DISCORD_WEBHOOK_URL
const DISCORD_CHANNEL_ID = process.env.DISCORD_CHANNEL_ID
Expand All @@ -15,7 +15,7 @@ const DISCORD_BOT_TOKEN = Buffer.from(
* @returns A promise that resolves when the notification is successfully sent or rejects with an error.
*/
export const sendDiscordNotification = async (
payload: DiscordWebhookPayload,
payload: IDiscordWebhookPayload,
) => {
await axios
.post(DISCORD_WEBHOOK_URL, payload)
Expand Down
2 changes: 1 addition & 1 deletion functions/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type {
IResearchDB,
IUserDB,
IQuestionDB,
DiscordWebhookPayload,
IDiscordWebhookPayload,
} from '../../src/models'

import { dbEndpointSubcollections, generateDBEndpoints } from 'oa-shared'
Expand Down

0 comments on commit 970ead4

Please sign in to comment.