瀏覽代碼

fix create pengunjung

yazid138 3 年之前
父節點
當前提交
37eef24e84
共有 1 個文件被更改,包括 1 次插入1 次删除
  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,