Skip to content

Commit

Permalink
Type name change
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Aug 24, 2023
1 parent 6f4fbfb commit 7510dab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/discord-bot/src/utils/api-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export type PraiseForwardInputDto =

export type Setting = components['schemas']['Setting'];

export type CommunityPaginatedResponseDto =
components['schemas']['CommunityPaginatedResponseDto'];
export type CommunityFindAllResponseDto =
components['schemas']['CommunityFindAllResponseDto'];
export type Community = components['schemas']['Community'];

export type PeriodPaginatedResponseDto =
Expand Down
4 changes: 2 additions & 2 deletions packages/discord-bot/src/utils/getHost.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { apiGet } from './api';
import Keyv from 'keyv';
import { Community, CommunityPaginatedResponseDto } from './api-schema';
import { Community, CommunityFindAllResponseDto } from './api-schema';
import { DiscordClient } from '../interfaces/DiscordClient';

/**
Expand All @@ -11,7 +11,7 @@ export const buildCommunityCache = async (cache: Keyv): Promise<void> => {
let currPage = 1;
let totalPages = 1;
while (currPage <= totalPages) {
const communityList = await apiGet<CommunityPaginatedResponseDto>(
const communityList = await apiGet<CommunityFindAllResponseDto>(
`/communities?page=${currPage}`
).then((res) => res.data);

Expand Down

0 comments on commit 7510dab

Please sign in to comment.