|
@@ -167,6 +167,7 @@ func (d *Database) KeyExists(tableName string, key string) bool {
|
|
resultIsNil := false
|
|
resultIsNil := false
|
|
if !d.TableExists(tableName) {
|
|
if !d.TableExists(tableName) {
|
|
//Table not exists. Do not proceed accessing key
|
|
//Table not exists. Do not proceed accessing key
|
|
|
|
+ log.Println("[DB] ERROR: Requesting key from table that didn't exist!!!")
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
err := d.Db.View(func(tx *bolt.Tx) error {
|
|
err := d.Db.View(func(tx *bolt.Tx) error {
|