remove timestamp method
This commit is contained in:
parent
f6233feef3
commit
bd1a1128d8
|
@ -1,9 +1,5 @@
|
||||||
package statsapi
|
package statsapi
|
||||||
|
|
||||||
import (
|
|
||||||
"errors"
|
|
||||||
)
|
|
||||||
|
|
||||||
type DiffPatchParams struct {
|
type DiffPatchParams struct {
|
||||||
GamePk string
|
GamePk string
|
||||||
StartTimecode string
|
StartTimecode string
|
||||||
|
@ -22,13 +18,3 @@ type instruction struct {
|
||||||
Value any
|
Value any
|
||||||
From string
|
From string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Patch) Timestamp() (string, error) {
|
|
||||||
for _, d := range p.Diff {
|
|
||||||
if d.Op == "replace" && d.Path == "/metaData/timeStamp" {
|
|
||||||
return d.Value.(string), nil
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return "", errors.New("could not find replacement timestamp")
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue