// Serve starts listening for inbound requests.
func (s *HTTPServer) Serve() error {
return s.srv.Serve(s.l)
}
type HTTPServer struct {
srv *http.Server
l net.Listener
}
const currentSum = document.getElementById("sum");
const checkboxArray = Array.from(document.querySelectorAll('[type="checkbox"]'));
checkboxArray.map(item => item.addEventListener('change', function() {
if(this.checked){
currentSum.innerText = (+currentSum.innerText + + this.value).toString()
}else{
currentSum.innerText -= this.value
}
}))
меня смущает аргумент entityName: 'accrueds' | 'deductions',
и вот эти моменты .leftJoinAndSelect(`sheets.${entityName}`, entityName)