Skip to content

Commit

Permalink
feat: add category property api
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Sep 12, 2024
1 parent 40fd973 commit 95ceb37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
6 changes: 0 additions & 6 deletions src/services/discord/core.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ import httpStatus from 'http-status';

const logger = parentLogger.child({ module: 'DiscordCoreService' });

/**
* exchange discord code with access token
* @param {string} code
@param {string} redirect_uri
* @returns {Promise<IDiscordOAuth2EchangeCode>}
*/
async function getPropertyHandler(req: IAuthAndPlatform) {
const guildConnection = await DatabaseManager.getInstance().getGuildDb(req.platform?.metadata?.id);

Expand Down
5 changes: 3 additions & 2 deletions src/services/discourse/category.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ const logger = parentLogger.child({ module: 'DiscourseCategoryService' });

/**
* get list of categories
* @param {string} refreshToken
* @returns {Promise<IDiscordOAuth2EchangeCode>}
* @param {string} filters
* @param {options} filters
* @returns {Promise<any>}
*/
async function getCategoriesByEndPoint(filters: any, options: any): Promise<any> {
const { endPoint, name } = filters;
Expand Down
6 changes: 0 additions & 6 deletions src/services/discourse/core.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import { ApiError, pick, sort } from '../../utils';

const logger = parentLogger.child({ module: 'DiscordCoreService' });

/**
* exchange discord code with access token
* @param {string} code
@param {string} redirect_uri
* @returns {Promise<IDiscordOAuth2EchangeCode>}
*/
async function getPropertyHandler(req: IAuthAndPlatform) {
const filter = pick(req.query, ['name']);
const options = pick(req.query, ['sortBy', 'limit', 'page']);
Expand Down

0 comments on commit 95ceb37

Please sign in to comment.