Huawei / dockyard

Container & Artifact Repository
Apache License 2.0
268 stars 67 forks source link

DB variable uninitialized #175

Open dsanader opened 7 years ago

dsanader commented 7 years ago

Hello,

The web server is panicing on every request because of the DB variable being nil.

I've added a call to models.OpenDatabase() in SetDockyardMacaron function to prevent that as a quick fix. Not sure where you would wish to put that. There, or in a init function.

Regards.