Not really sure what the issue is or really how to deploy it, my code is as follows:
exports.autoLockWeek = functions.pubsub.schedule('50 20 * * FRI')
.timeZone('America/New_York')
.onRun((context) => {
sceduleLockRef.child("AutoLockWeek").once('value').then(function(snap) {
gamesRef.orderByChild("WeekId").equalTo(parseInt(snap.val())).once('value').then(function(snapshot) {
snapshot.forEach(function(child) {
gamesRef.child(child.key).update({
isPlayed: true
});
});
});
});
return null;
});
I am unsure how do i deploy this now?!
I was able to deploy it, as I can see it in my cloud functions list but when the time 'hit' the function did not trigger like i was expecting!?