yazid138 %!s(int64=2) %!d(string=hai) anos
pai
achega
9f4b61686d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controller/v1/pt.controller.js

+ 1 - 1
controller/v1/pt.controller.js

@@ -23,7 +23,7 @@ exports.getOne = [
   handleError(async (req, res) => {
     const user = req.user
     const { id } = req.params
-    let data = (await pddiktiService.getPT(id)).data[0]
+    let data = (await pddiktiService.getPT(id))[0]
     if (user.role.id === PTB_LLDIKTI && data.pembina.id !== user.lembaga.id) {
       return response.error(res, {
         message: 'pt_id tidak ada',