From 5b87b1253555b7e932f79bd86795e350f9f3de2e Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 11 Mar 2024 16:14:24 +0330 Subject: [sub] JSON sub enhancement + minor changes Co-Authored-By: Alireza Ahmadi --- sub/subController.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sub/subController.go') diff --git a/sub/subController.go b/sub/subController.go index 8de5b5df..dc66c892 100644 --- a/sub/subController.go +++ b/sub/subController.go @@ -27,14 +27,15 @@ func NewSUBController( update string, jsonFragment string, ) *SUBController { + sub := NewSubService(showInfo, rModel) a := &SUBController{ subPath: subPath, subJsonPath: jsonPath, subEncrypt: encrypt, updateInterval: update, - subService: NewSubService(showInfo, rModel), - subJsonService: NewSubJsonService(jsonFragment), + subService: sub, + subJsonService: NewSubJsonService(jsonFragment, sub), } a.initRouter(g) return a -- cgit v1.2.3