Browse Source

fix create pengunjung

yazid138 3 năm trước cách đây
mục cha
commit
37eef24e84
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      actions/pengunjung.js

+ 1 - 1
actions/pengunjung.js

@@ -8,7 +8,7 @@ export const createPengunjung = async () => {
 			os: navigator.userAgentData.platform,
 			ipv4: jsonip.data.ip,
 			location: {
-				country: { type: String },
+				country: jsonip.data.country_name,
 				region: jsonip.data.region_name,
 				city: jsonip.data.city,
 				lat: jsonip.data.latitude,