fix: issues
This commit is contained in:
@@ -40,7 +40,7 @@ func NewDBChannel(uuid int64, username, title string) *DBChannel {
|
||||
|
||||
func (c *DBChannel) Asset(assetID int64, ext string) string {
|
||||
assetFile := fmt.Sprintf("%d/%d.%s", c.UUID, assetID, strings.Trim(ext, "."))
|
||||
assetFile = filepath.Join(config.C.Outputs, assetFile)
|
||||
assetFile = filepath.Join(config.C.Output, assetFile)
|
||||
|
||||
// if file dir not exists then create it
|
||||
if _, err := os.Stat(filepath.Dir(assetFile)); os.IsNotExist(err) {
|
||||
|
||||
Reference in New Issue
Block a user