Skip to content

Commit

Permalink
fix: 修正在群組中無法獲取用戶 ID 的問題
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshino committed Nov 11, 2024
1 parent e0a54c3 commit 8c0e77d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ function interactWithBot(context) {
const recordLatestGroupUser = async (context, { next }) => {
if (context.event.source.type !== "group") return next;
const { userId, groupId } = context.event.source;
if (!userId) return next;
const key = `latestGroupUser:${groupId}`;
await redis.zAdd(key, [
{
Expand Down

0 comments on commit 8c0e77d

Please sign in to comment.