fix: 修复抢红包日志列表长度限制未生效的问题

This commit is contained in:
chenkai 2023-12-25 11:06:45 +08:00
parent 14daa94dba
commit c323a9e255

View File

@ -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 {