-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
When I run this code I get "User has been authenticated successfully!" but nothing is saved. What am I doing wrong. Thanks.
var GithubDB = require('github-db').default;
var options = { protocol: 'https', owner: 'shirha', repo: 'derelict', path: 'derelict.json' };
var githubDB = new GithubDB(options);
githubDB.auth("...");
githubDB.connectToRepo();
var article1 = { title : 'githubDB rocks', published : 'today', rating : '5 stars'}
var article2 = { title : 'githubDB rocks', published : 'yesterday', rating : '5 stars'}
githubDB.save([article1, article2]).then((res) => { console.log(res); });
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels