actually got AmAutoJoinCommunities to work

This commit is contained in:
2025-10-09 13:30:45 -06:00
parent 8fdc3ded44
commit e04c903b11
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ func AmAutoJoinCommunities(user *User) error {
var lock bool
rows.Scan(&cid, &lock)
if !slices.Contains(current, cid) {
_, err = amdb.Exec("INSERT INTO commmember (commid, uid, granted_lvl, locked) VALUES (?. ?, ?, ?)",
_, err = amdb.Exec("INSERT INTO commmember (commid, uid, granted_lvl, locked) VALUES (?, ?, ?, ?)",
cid, user.Uid, grantLevel, lock)
if err != nil {
break