mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-26 00:21:54 +08:00
feat(database): support postgres (#43)
Co-authored-by: Li4n0 <[email protected]>
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ func (s *Server) UpdateRules() error {
|
||||
db := database.DB.Model(new(Rule))
|
||||
defer s.rulesLock.Unlock()
|
||||
s.rulesLock.Lock()
|
||||
return db.Order("`rank` desc").Find(&s.rules).Error
|
||||
return db.Order("base_rank desc").Find(&s.rules).Error
|
||||
}
|
||||
|
||||
func (s *Server) startHttpServer() {
|
||||
|
||||
Reference in New Issue
Block a user