feat: add dynamic hospital database registry
This commit is contained in:
@@ -37,7 +37,7 @@ func (h Handler) ListTarifKerjasama(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
page, err := h.tarifRepo.ListTarifKerjasama(r.Context(), params)
|
||||
page, err := h.tarifRepository(r.Context()).ListTarifKerjasama(r.Context(), params)
|
||||
if err != nil {
|
||||
writeTarifKerjasamaInternalError(w)
|
||||
return
|
||||
@@ -72,7 +72,7 @@ func (h Handler) GetTarifKerjasama(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
detail, err := h.tarifRepo.GetTarifKerjasama(r.Context(), id, params)
|
||||
detail, err := h.tarifRepository(r.Context()).GetTarifKerjasama(r.Context(), id, params)
|
||||
if err != nil {
|
||||
writeTarifKerjasamaInternalError(w)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user