feat: clear null userdata
This commit is contained in:
@@ -34,6 +34,7 @@ const cacheTryGet = async (_id, params, func) => {
|
||||
const userData: any = await getUserData(_id);
|
||||
const id = (userData.data?.user || userData.data?.user_result)?.result?.rest_id;
|
||||
if (id === undefined) {
|
||||
cache.set(`twitter-userdata-${_id}`, '', config.cache.contentExpire);
|
||||
throw new InvalidParameterError('User not found');
|
||||
}
|
||||
const funcName = func.name;
|
||||
|
||||
Reference in New Issue
Block a user