Skip to content

Commit

Permalink
fix: 数据库存储错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-cn committed Jul 11, 2024
1 parent 30883e6 commit b880154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zhin/src/plugins/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ database.mounted(async app => {
const groupInfo = await db.find<GroupInfo[]>('group', group => {
return group.from_id === message.from_id;
});
Reflect.deleteProperty(groupInfo || {}, 'from_id');
Object.assign(message, groupInfo || {});
if (!groupInfo)
await db.push('group', {
Expand Down

0 comments on commit b880154

Please sign in to comment.