保誠-保戶業務員媒合平台
Tomas
2023-09-01 bce34327a0aa3d6ea8365423df9962c13f256ab4
PAMapp/shared/services/reviews.service.ts
@@ -29,8 +29,9 @@
  async  sendSatisfactionToClient(appointmentId: number): Promise<any> {
    try {
      const response = await http.post(`/consultant/sendSatisfactionToClient/${appointmentId}`);
      if (response !== null) {
        return response.data;
      // 弱掃TEST3: 判斷 response && response.data
      if (response) {
        return response && response.data;
      } else {
        throw new Error('http.post returned null-like value.');
      }