fix
This commit is contained in:
		
							parent
							
								
									4ddf97b475
								
							
						
					
					
						commit
						54ee174fbf
					
				@ -57,7 +57,7 @@ func (mquery *ModuleQuery) EncodeQuery(field string) string {
 | 
			
		||||
	var qstr []byte = []byte("JSON_OBJECT(")
 | 
			
		||||
 | 
			
		||||
	for query := range mquery.ModuleQuery {
 | 
			
		||||
		qstr = append(qstr, []byte(fmt.Sprintf("'%s.%s', %s ->> %s,", mquery.ModuleName, query, field, query))...)
 | 
			
		||||
		qstr = append(qstr, []byte(fmt.Sprintf("'%s.%s', %s ->> $.%s,", mquery.ModuleName, query, field, query))...)
 | 
			
		||||
	}
 | 
			
		||||
	if qstr[len(qstr)-1] == ',' {
 | 
			
		||||
		qstr[len(qstr)-1] = ')'
 | 
			
		||||
@ -109,7 +109,6 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r
 | 
			
		||||
				ModuleQuery: map[string]struct{}{strings.Join(mlist[1:], ","): {}}}
 | 
			
		||||
			mquerys[mtable] = mquery
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	for _, mquery := range mquerys {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user