Skip to content

Nothing stored on save #19

@shirha

Description

@shirha

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); });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions