mirror of https://github.com/stashapp/stash.git
15 lines
252 B
Go
15 lines
252 B
Go
|
package models
|
||
|
|
||
|
func StashIDsFromInput(i []*StashIDInput) []StashID {
|
||
|
var ret []StashID
|
||
|
for _, stashID := range i {
|
||
|
newJoin := StashID{
|
||
|
StashID: stashID.StashID,
|
||
|
Endpoint: stashID.Endpoint,
|
||
|
}
|
||
|
ret = append(ret, newJoin)
|
||
|
}
|
||
|
|
||
|
return ret
|
||
|
}
|