First Time Popup Lightbox

Hi Mustafa! Thank you for helping me out. I have changed the code, and now this is looking like this:

import wixUsers from ‘wix-users’;
import wixData from ‘wix-data’;

$w.onReady( function () {
let user = wixUsers.currentUser;

wixData.query(“oldUsers”)
.eq(“:_id”, user.id)//check if the user id exist
.eq(“detailsFilled”, true ) // check if the details is filled out (True)
.find()
.then( (results) => {
if (results.items[0]){ //if the user id exist and the detailsFilled is True
console.log(“Not the first time,and details filled before”);
$w(“#lightBox”).hide();
}

} );

The lightbox is showing up to everybody, even to those who have got the booleam value true.
This code is on my page, and not on my lightbox (not sure if this is the cause).
I have changed the “usersID” to “_id” as this is the item on my DB that contains the user ID. Not ure if I was supposed to do this or not. The lighBox I am not sure if I have to change that to the actual name of the lightBox, or if I am suupposed to leave it as “lightBox”.
Finally, since there is no coding to now show the lightbox, I should make that appearing automatically, right?