backend-manager 4.0.21 → 4.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -40,8 +40,8 @@ Module.prototype.main = function () {
40
40
  // Check for required values
41
41
  if (!payload.data.payload.path) {
42
42
  return reject(assistant.errorify(`Missing required parameter: path`, {code: 400}));
43
- } else if (!payload.data.payload.body) {
44
- return reject(assistant.errorify(`Missing required parameter: body`, {code: 400}));
43
+ } else if (!payload.data.payload.content) {
44
+ return reject(assistant.errorify(`Missing required parameter: content`, {code: 400}));
45
45
  }
46
46
 
47
47
  // Fix other values
@@ -68,7 +68,7 @@ Module.prototype.main = function () {
68
68
  };
69
69
 
70
70
  // Upload post to GitHub
71
- Module.prototype.uploadContent = function (content) {
71
+ Module.prototype.uploadContent = function () {
72
72
  const self = this;
73
73
  const Manager = self.Manager;
74
74
  const Api = self.Api;
@@ -77,9 +77,10 @@ Module.prototype.uploadContent = function (content) {
77
77
 
78
78
  return new Promise(async function(resolve, reject) {
79
79
  // Save variables
80
- const filename = payload.data.payload.pathl
81
80
  const owner = payload.data.payload.githubUser;
82
81
  const repo = payload.data.payload.githubRepo;
82
+ const filename = payload.data.payload.path;
83
+ const content = payload.data.payload.content;
83
84
 
84
85
  // Log
85
86
  assistant.log(`uploadContent(): filename`, filename);
@@ -90,7 +91,7 @@ Module.prototype.uploadContent = function (content) {
90
91
  repo: repo,
91
92
  path: filename,
92
93
  })
93
- .catch(e => e);
94
+ .catch((e) => e);
94
95
 
95
96
  // Log
96
97
  assistant.log(`uploadContent(): Existing`, existing);