mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-18 20:46:47 +01:00
19 lines
288 B
Go
19 lines
288 B
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
func (s *PostgresStore) CreateDispatchStatus(ctx context.Context, dispatch DispatchStatus) error {
|
|
if _, err := s.db.Exec(
|
|
ctx,
|
|
s.queries.CreateDispatchStatus,
|
|
dispatch.OtxId,
|
|
dispatch.Status,
|
|
); err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|