From 131bc33637f887da8e83e22ba064eae88a90f4ac Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 24 Dec 2024 16:56:52 +0800 Subject: [PATCH] feat: update follow config --- lib/api/follow/config.ts | 2 +- lib/config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/api/follow/config.ts b/lib/api/follow/config.ts index e8275f83a..6465470dd 100644 --- a/lib/api/follow/config.ts +++ b/lib/api/follow/config.ts @@ -17,7 +17,7 @@ const handler: RouteHandler = (ctx) => ownerUserId: config.follow.ownerUserId, description: config.follow.description, price: config.follow.price, - limit: config.follow.limit, + userLimit: config.follow.userLimit, }); export { route, handler }; diff --git a/lib/config.ts b/lib/config.ts index c50fa679f..ae084fab5 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -90,7 +90,7 @@ export type Config = { ownerUserId?: string; description?: string; price?: number; - limit?: number; + userLimit?: number; }; // Route-specific Configurations @@ -520,7 +520,7 @@ const calculateValue = () => { ownerUserId: envs.FOLLOW_OWNER_USER_ID, description: envs.FOLLOW_DESCRIPTION, price: toInt(envs.FOLLOW_PRICE), - limit: toInt(envs.FOLLOW_LIMIT), + userLimit: toInt(envs.FOLLOW_USER_LIMIT), }, // Route-specific Configurations