charwking / movie-club

A web app for running a work movie club
MIT License
3 stars 5 forks source link

Use different format for meetings in firebase #145

Closed charwking closed 8 years ago

charwking commented 8 years ago

This PR accomplishes a couple things:

In order to (manually) convert existing meetings to this new format, the following function can be used:

function change(ref, key, date) {
   ref.child(key).once('value', function (data) {
      var obj = data.val();
      obj.date = date;
      ref.push(obj);
   });
}