Skip to content

Commit

Permalink
fix twitterBot schema class
Browse files Browse the repository at this point in the history
  • Loading branch information
RamRamez committed Jul 10, 2023
1 parent da175c1 commit 33ed12b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/api-types/out/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -985,11 +985,11 @@ export interface components {
* "consumerSecret":"ciwhh1lli5S...",
* "accessToken":"165569343217...",
* "tokenSecret":"jv2kTUl2NBYbj...",
* "twitterBotId":1655693432172494852,
* "twitterBotUsername":"givethpraise"
* "twitterBotId":e.g. 1655693432172494852,
* "twitterBotUsername":"e.g. givethpraise"
* }
*/
twitterBot: components['schemas']['TwitterBot'];
twitterBot?: components['schemas']['TwitterBot'];
};
Community: {
/** @example 621f802b813dbdba9eeaf7b4 */
Expand Down Expand Up @@ -1024,11 +1024,11 @@ export interface components {
* "consumerSecret":"ciwhh1lli5S...",
* "accessToken":"165569343217...",
* "tokenSecret":"jv2kTUl2NBYbj...",
* "twitterBotId":1655693432172494852,
* "twitterBotUsername":"givethpraise"
* "twitterBotId":e.g. 1655693432172494852,
* "twitterBotUsername":"e.g. givethpraise"
* }
*/
twitterBot: components['schemas']['TwitterBot'];
twitterBot?: components['schemas']['TwitterBot'];
};
UpdateCommunityInputDto: {
/** @example banklessdao.givepraise.xyz */
Expand Down
2 changes: 1 addition & 1 deletion packages/api/openapi.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/api/src/community/schemas/community.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export class Community {
discordLinkState: string;

@ApiProperty({
required: false,
example:
'{\n' +
' "bearerToken":"AAAAAAAAAAAAAAAAAAAAAMsDPC...",\n' +
Expand Down
4 changes: 3 additions & 1 deletion packages/api/src/community/schemas/twitterBot.schema.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { IsNumber, IsOptional, IsString } from 'class-validator';
import { Prop, SchemaFactory } from '@nestjs/mongoose';
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { ApiProperty } from '@nestjs/swagger';
import { ExposeId } from '../../shared/decorators/expose-id.decorator';
import { Types } from 'mongoose';

@Schema({ timestamps: true })

export class TwitterBot {
@ApiProperty({
example: '621f802b813dbdba9eeaf7b4',
Expand Down

0 comments on commit 33ed12b

Please sign in to comment.