Skip to content

Commit 25c816f

Browse files
committed
Fix snapshot cmd config handling
1 parent 8c3e074 commit 25c816f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rolling-shutter/snapshot/database/definition.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ var files embed.FS
1515
var Definition db.Definition
1616

1717
func init() {
18-
var err error
19-
Definition, err = db.NewSQLCDefinition(files, "sql/", "snapshot", 22)
18+
def, err := db.NewSQLCDefinition(files, "sql/", "snapshot", 22)
2019
if err != nil {
2120
log.Fatal().Err(err).Msg("failed to initialize DB metadata")
2221
}
22+
Definition = db.NewAggregateDefinition(
23+
"snapshot",
24+
def,
25+
)
2326
}

0 commit comments

Comments
 (0)