logger.Info("Could not add user to group as relationship already exists.",zap.String("group_id",groupID.String()),zap.String("user_id",userID.String()))
returnnil// completed successfully
returne
}
logger.Debug("Could not add user to group.",zap.String("group_id",groupID.String()),zap.String("user_id",userID.String()))
@@ -381,14 +380,18 @@ WHERE (id = $1) AND (disable_time = '1970-01-01 00:00:00 UTC')`
}
query="UPDATE groups SET edge_count = edge_count + 1, update_time = now() WHERE id = $1::UUID AND edge_count+1 <= max_count"