Skip to content

Commit

Permalink
Update firebase syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Jan 11, 2017
1 parent 233128e commit 3287f7e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/hnapi.js
@@ -1,9 +1,12 @@
var Firebase = require('firebase');
var firebase = require('firebase');
var moment = require('moment');
var extend = require('extend');
var url = require('url');

var hn = new Firebase('https://hacker-news.firebaseio.com/v0');
firebase.initializeApp({
databaseURL: 'https://hacker-news.firebaseio.com',
});
var hn = firebase.database().ref('/v0');
var hnRecentItems = hn.child('updates/items');

var typeMapping = {
Expand Down

0 comments on commit 3287f7e

Please sign in to comment.