mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-25 16:11:53 +08:00
fix(pkg): fix the conflict between rank field and built-in function (#38)
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ func (s *Server) UpdateRules() error {
|
||||
db := database.DB.Model(new(Rule))
|
||||
defer s.rulesLock.Unlock()
|
||||
s.rulesLock.Lock()
|
||||
return errors.Wrap(db.Order("rank desc").Find(&s.rules).Error, "DNS update rules error")
|
||||
return errors.Wrap(db.Order("`rank` desc").Find(&s.rules).Error, "DNS update rules error")
|
||||
}
|
||||
|
||||
func newSet(_rule *Rule, name, value, ip string, _type newdns.Type) []newdns.Set {
|
||||
|
||||
Reference in New Issue
Block a user