"document is nil" met during calling cmd "pritunl-zero clear-logs"

During calling command “pritunl-zero clear-logs” on pritunl-zero management node, the command will be failed for error “document is nil”.

Detailed error:

pritunl-zero clear-logs
[2024-10-28 04:26:11][INFO] ▶ database: Connecting to MongoDB server ◆ mongodb_hosts=[]string{"mongodb.beyondcorp.svc.cluster.local:27017"}
[2024-10-28 04:26:11][INFO] ▶ database: Connected to MongoDB server ◆ mongodb_hosts=[]string{"mongodb.beyondcorp.svc.cluster.local:27017"}
panic: database: Unknown error []
	document is nil
	ORIGINAL STACK TRACE:
	github.com/pritunl/pritunl-zero/database.ParseError
		/go/src/github.com/pritunl/pritunl-zero/database/utils.go:122 +0xbd43d6
	github.com/pritunl/pritunl-zero/log.Clear
		/go/src/github.com/pritunl/pritunl-zero/log/utils.go:99 +0xc157db
	github.com/pritunl/pritunl-zero/cmd.ClearLogs
		/go/src/github.com/pritunl/pritunl-zero/cmd/log.go:13 +0x15a826d
	main.main
		/go/src/github.com/pritunl/pritunl-zero/main.go:129 +0x15ab0d7
	runtime.main
		/usr/local/go/src/runtime/proc.go:272 +0x43ccca
	runtime.goexit
		/usr/local/go/src/runtime/asm_amd64.s:1700 +0x479960
	

goroutine 1 [running]:
main.main()
	/go/src/github.com/pritunl/pritunl-zero/main.go:131 +0x47b

This is caused by the nil parameter for filter in method Clear() pritunl-zero/log/utils.go at dea0444954bb2ada0756a9fe7e6f357a27ebdd9b · pritunl/pritunl-zero · GitHub

This will be fixed in the next release.