submissions: fix unhandled error path causing silent failure

This commit is contained in:
2024-12-17 16:15:33 -08:00
parent 6bab1e1b6b
commit 298a68fa97
3 changed files with 4 additions and 0 deletions

@ -19,6 +19,7 @@ func (env *Scripts) Get(ctx context.Context, id int64) (model.Script, error) {
if errors.Is(err, gorm.ErrRecordNotFound) {
return mdl, datastore.ErrNotExist
}
return mdl, err
}
return mdl, nil
}