Skip to content

Commit

Permalink
feat: add follow limit config
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 20, 2024
1 parent d46052f commit dd08502
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/api/follow/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const handler: RouteHandler<typeof route> = (ctx) =>
ownerUserId: config.follow.ownerUserId,
description: config.follow.description,
price: config.follow.price,
limit: config.follow.limit,
});

export { route, handler };
2 changes: 2 additions & 0 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export type Config = {
ownerUserId?: string;
description?: string;
price?: number;
limit?: number;
};

// Route-specific Configurations
Expand Down Expand Up @@ -519,6 +520,7 @@ const calculateValue = () => {
ownerUserId: envs.FOLLOW_OWNER_USER_ID,
description: envs.FOLLOW_DESCRIPTION,
price: toInt(envs.FOLLOW_PRICE),
limit: toInt(envs.FOLLOW_LIMIT),
},

// Route-specific Configurations
Expand Down

0 comments on commit dd08502

Please sign in to comment.