Browse Source

add support xsql

xormplus 7 years ago
parent
commit
922c133842
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fswatcher.go

+ 1 - 1
fswatcher.go

@@ -28,7 +28,7 @@ func (engine *Engine) StartFSWatcher() error {
 						}
 					}
 
-					if strings.HasSuffix(event.Name, engine.SqlMap.Extension["xml"]) || strings.HasSuffix(event.Name, engine.SqlMap.Extension["json"]) {
+					if strings.HasSuffix(event.Name, engine.SqlMap.Extension["xml"]) || strings.HasSuffix(event.Name, engine.SqlMap.Extension["json"]) || strings.HasSuffix(event.Name, engine.SqlMap.Extension["xsql"]) {
 						err = engine.reloadSqlMap(event.Name)
 						if err != nil {
 							engine.logger.Error(err)