last day (28 days later) » 

11:34 PM
Message me when you get in.
 
hey
 
hey
 
sorry for taking so long
 
oh no worries!
Would you mind explaining a little more of what you are trying to do?
 
sure thing
so basically I have an objectID of an existing user (let's call it XX1 for example) stored in a variable
so something like var uniqueID = XX1;
now, based on this ObjectID, I want to be able to set data for the user of which the ID corresponds too
so let's say the user "joe" has that objectID
I want to be able to send info to joe based on the ObjectID
now in my DataBrowser my user "joe" has a column called "money"
I want to be able to send money to joe like such: user.set('money
*woops
user.set('money',9);
except
instead of user, I want it to have the objectID I previously defined in a variable
if that makes any sense.
 
11:45 PM
it does make sense
where are you calling this function?
is joe calling this function?
 
I'm not exactly sure how to call the function that links the objectID to the user that is part of the problem
 
yeah
but this whole function
how is it getting triggered
does that make sense?
is this an iphone app?
 
no it's a web app
 
oh okay
 
it's should send the data on Dom ready
 
11:47 PM
okay, i'm understanding more
i think i know what to do
give me a minute
 
sure thank you!!
 
is this cloud code?
could you use Parse.User.current?
or will you not be setting the current user
 
not the current user
just the user who's objectID matches the one I have set in the variable
(so any user that follows that criteria)
 
okay, right
just making sure
userQuery = new Parse.Query("User");
userQuery.equalTo("objectId", request.params.userId);
userQuery.first().then(function(currentUser){
var purchaseLockSlotModule = require('cloud/purchaseLockSlot.js');
purchaseLockSlotModule.purchaseLockSlot(currentUser,loskSlotCost, expireDate, request.params.type, callBack);
}); //find
oops
ignore that
 

  last day (28 days later) »