Commit 8dc665d4a10c02cc03ab020c7d69c85a0839b311
1 parent
16e304c58a
Exists in
master
and in
1 other branch
Init/Reload Tables is now Init/Reload PayloadMetaData
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
json_utility.go
... | ... | @@ -49,7 +49,7 @@ type Payload struct { |
49 | 49 | |
50 | 50 | // InitTables loads all payloads in the payloads variable. |
51 | 51 | // Returns an error if it fails. |
52 | -func InitTables(db *ora.Ses, project string) error { | |
52 | +func InitPayloads(db *ora.Ses, project string) error { | |
53 | 53 | jsonbuf, err := fetchJSON(db, project) |
54 | 54 | if err != nil { |
55 | 55 | return err |
... | ... | @@ -66,9 +66,9 @@ func InitTables(db *ora.Ses, project string) error { |
66 | 66 | |
67 | 67 | // ReloadTables reloads all payloads in the payloads variable. |
68 | 68 | // Returns an error if it fails. |
69 | -func ReloadTables(db *ora.Ses, project string) error { | |
69 | +func ReloadPayloads(db *ora.Ses, project string) error { | |
70 | 70 | payloads = make([]Payload, 0) |
71 | - return InitTables(db, project) | |
71 | + return InitPayloads(db, project) | |
72 | 72 | } |
73 | 73 | |
74 | 74 | // DecodeJSON decodes JSON data from r to v. | ... | ... |