Skip to content

Commit e29961f

Browse files
committed
auto follow group when create it
1 parent caa2c16 commit e29961f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/app/service/group.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ class Group extends Service {
6969
const _group = {
7070
name: group.name,
7171
creator: authId,
72-
manager: authId
72+
manager: authId,
73+
follower: [ authId ]
7374
}
7475
return this.ctx.model.Group(_group).save()
7576
}

0 commit comments

Comments
 (0)