mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-16 21:08:00 +00:00
17 lines
404 B
Go
17 lines
404 B
Go
|
package system
|
||
|
|
||
|
import (
|
||
|
"github.com/muhlemmer/gu"
|
||
|
|
||
|
"github.com/zitadel/zitadel/internal/command"
|
||
|
"github.com/zitadel/zitadel/pkg/grpc/system"
|
||
|
)
|
||
|
|
||
|
func instanceLimitsPbToCommand(req *system.SetLimitsRequest) *command.SetLimits {
|
||
|
var setLimits = new(command.SetLimits)
|
||
|
if req.AuditLogRetention != nil {
|
||
|
setLimits.AuditLogRetention = gu.Ptr(req.AuditLogRetention.AsDuration())
|
||
|
}
|
||
|
return setLimits
|
||
|
}
|