fix error on creation of the very first task

This commit is contained in:
Jurica Bacurin
2023-03-30 23:36:23 +02:00
parent 993ab37ab5
commit d45981d1d0
+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
}