Skip to content

Commit

Permalink
fix(route/discord): add missing __dirname definition in search route (
Browse files Browse the repository at this point in the history
DIYgod#17530)

Co-authored-by: NekoAria <NekoAria@users.noreply.github.com>
  • Loading branch information
NekoAria and NekoAria authored Nov 11, 2024
1 parent 47a9bc5 commit a490992
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/routes/discord/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ import path from 'node:path';
import { config } from '@/config';
import InvalidParameterError from '@/errors/types/invalid-parameter';
import { Route } from '@/types';
import { getCurrentPath } from '@/utils/helpers';
import { parseDate } from '@/utils/parse-date';
import { art } from '@/utils/render';
import ConfigNotFoundError from '@/errors/types/config-not-found';
import { queryToBoolean } from '@/utils/readable-social';

import { baseUrl, getGuild, searchGuildMessages, SearchGuildMessagesParams, HasType, VALID_HAS_TYPES } from './discord-api';

const __dirname = getCurrentPath(import.meta.url);

export const route: Route = {
path: '/search/:guildId/:routeParams',
categories: ['social-media'],
Expand Down

0 comments on commit a490992

Please sign in to comment.