Mercurial > gemma
comparison pkg/imports/st.go @ 5034:59a99655f34d
Added feedback support for StageDone.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 20 Mar 2020 12:28:04 +0100 |
parents | aeb2aedd3abd |
children | 6270951dda28 |
comparison
equal
deleted
inserted
replaced
5033:13d9820c1ea4 | 5034:59a99655f34d |
---|---|
128 // StageDone moves the imported stretch out of the staging area. | 128 // StageDone moves the imported stretch out of the staging area. |
129 func (stJobCreator) StageDone( | 129 func (stJobCreator) StageDone( |
130 ctx context.Context, | 130 ctx context.Context, |
131 tx *sql.Tx, | 131 tx *sql.Tx, |
132 id int64, | 132 id int64, |
133 _ Feedback, | |
133 ) error { | 134 ) error { |
134 if _, err := tx.ExecContext(ctx, stDeleteSQL, id); err != nil { | 135 if _, err := tx.ExecContext(ctx, stDeleteSQL, id); err != nil { |
135 return err | 136 return err |
136 } | 137 } |
137 _, err := tx.ExecContext(ctx, stStageDoneSQL, id) | 138 _, err := tx.ExecContext(ctx, stStageDoneSQL, id) |