Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 667a548

Browse files
committed
update package.json
1 parent 92771e5 commit 667a548

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "olisc",
33
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
4+
"description": "Multi-network transaction scheduler API",
5+
"main": "src/api.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9-
"author": "",
10-
"license": "ISC",
9+
"author": "techcoderx",
10+
"license": "MIT",
1111
"dependencies": {
1212
"@blurtfoundation/blurtjs": "^1.0.0",
1313
"@hiveio/hive-js": "^2.0.4",

src/actions.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const validator = require('./validator')
33

44
let actions = {
55
new: async (user,network,operation,operationNetwork,scheduled) => {
6+
if (!operationNetwork)
7+
return { error: 'opNetwork is required' }
68
if (!validator.validate(operationNetwork,operation))
79
return { error: 'operation validation failed' }
810
else if (!validator.general.positiveInteger(scheduled) || scheduled < new Date().getTime())

0 commit comments

Comments
 (0)