bugfix: using configs filename on read

This commit is contained in:
Baipyrus 2024-09-16 14:22:43 +02:00
parent 777de8f144
commit c66937fdba

View File

@ -7,7 +7,7 @@ import (
)
func ReadConfigs(name string) ([]*Config, error) {
file, err := os.Open("configs.json")
file, err := os.Open(name)
if err != nil {
return nil, err