Merge pull request #30 from jurica/fix_first_task_creation

fix error on creation of the very first task
This commit is contained in:
mrusme
2023-04-01 10:21:32 -05:00
committed by GitHub
+3
View File
@@ -165,6 +165,9 @@ func (database *Database) GetRunningEntryId(user string) (string, error) {
dberr := database.DB.View(func(tx *buntdb.Tx) error {
value, err := tx.Get(user + ":status:running")
if errors.Is(err, buntdb.ErrNotFound) {
return nil
}
if err != nil {
return err
}