Explorar o código

fix create pengunjung

yazid138 %!s(int64=3) %!d(string=hai) anos
pai
achega
37eef24e84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,