fix: 修复抢红包日志列表长度限制未生效的问题
This commit is contained in:
parent
14daa94dba
commit
c323a9e255
@ -109,7 +109,7 @@ export default async function (call: ApiCall<ReqReceive, ResReceive>) {
|
|||||||
});
|
});
|
||||||
const showOffListKey = showOffListKeyPrefix + activityId;
|
const showOffListKey = showOffListKeyPrefix + activityId;
|
||||||
await G.iorediscross.lpush(showOffListKey, msg);
|
await G.iorediscross.lpush(showOffListKey, msg);
|
||||||
await G.ioredis.ltrim(showOffListKey, 0, 49); // 限制列表保存 50 条消息, 避免无限增长
|
await G.iorediscross.ltrim(showOffListKey, 0, 49); // 限制列表保存 50 条消息, 避免无限增长
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user