create-sip 1.1.1 → 1.1.3

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.
@@ -1,5 +1,5 @@
1
1
  import User from './user.js';
2
- import sequelize from './database/database.js'
2
+ import sequelize from '../database/database.js'
3
3
 
4
4
  const db = {};
5
5
 
@@ -41,9 +41,9 @@ const ThingController = {
41
41
  data: thing
42
42
  })
43
43
  },
44
- async create(req, res) {
44
+ async store(req, res) {
45
45
  try {
46
- await ThingController.tryCreate(req, res)
46
+ await ThingController.tryStore(req, res)
47
47
  }catch(error) {
48
48
  res.status(500)
49
49
  res.json({
@@ -53,7 +53,7 @@ const ThingController = {
53
53
  })
54
54
  }
55
55
  },
56
- async tryCreate(req, res) {
56
+ async tryStore(req, res) {
57
57
  const thing = await Thing.create(req.body)
58
58
  res.status(201)
59
59
  res.json({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-sip",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "create-sip": "create-sip.js"