Skip to content

Commit

Permalink
fix: 修正無法在群組以外地方生效的問題
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshino committed Nov 11, 2024
1 parent 423ffb7 commit e0a54c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ function interactWithBot(context) {
}

const recordLatestGroupUser = async (context, { next }) => {
if (context.event.source.type !== "group") return;
if (context.event.source.type !== "group") return next;
const { userId, groupId } = context.event.source;
const key = `latestGroupUser:${groupId}`;
await redis.zAdd(key, [
Expand Down

0 comments on commit e0a54c3

Please sign in to comment.