File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1030,7 +1030,7 @@ plugins.register("/sdk/user_properties", async function(ob) {
10301030
10311031 if ( plugins . getConfig ( 'api' , params . app && params . app . plugins , true ) . city_data === true && ! userProps . loc && typeof data . lat !== "undefined" && typeof data . lon !== "undefined" ) {
10321032 // only override lat/lon if no recent gps location exists in user document
1033- if ( ! params . app_user . loc || ( params . app_user . loc . gps && params . time . mstimestamp - params . app_user . loc . date > 7 * 24 * 3600 ) ) {
1033+ if ( ! params . app_user . loc || ! params . app_user . loc . gps || params . time . mstimestamp - params . app_user . loc . date > 7 * 24 * 3600 ) {
10341034 userProps . loc = {
10351035 gps : false ,
10361036 geo : {
@@ -1061,7 +1061,7 @@ plugins.register("/sdk/user_properties", async function(ob) {
10611061
10621062 if ( plugins . getConfig ( 'api' , params . app && params . app . plugins , true ) . city_data === true && ! userProps . loc && data . ll && typeof data . ll [ 0 ] !== "undefined" && typeof data . ll [ 1 ] !== "undefined" ) {
10631063 // only override lat/lon if no recent gps location exists in user document
1064- if ( ! params . app_user . loc || ( params . app_user . loc . gps && params . time . mstimestamp - params . app_user . loc . date > 7 * 24 * 3600 ) ) {
1064+ if ( ! params . app_user . loc || ! params . app_user . loc . gps || params . time . mstimestamp - params . app_user . loc . date > 7 * 24 * 3600 ) {
10651065 userProps . loc = {
10661066 gps : false ,
10671067 geo : {
You can’t perform that action at this time.
0 commit comments