chore(deps): update core

This commit is contained in:
Alexis Tyler
2020-04-11 16:59:12 +09:30
parent a899497502
commit be6a16abcd
3 changed files with 4 additions and 4 deletions

3
package-lock.json generated
View File

@@ -1016,7 +1016,7 @@
}
},
"@unraid/core": {
"version": "github:unraid/core#00bcdd181c83fc91598a074d1b8bb44cc9026dad",
"version": "github:unraid/core#a851095f9789ae9a430dbd67d9389f4735354a7d",
"from": "github:unraid/core#master",
"requires": {
"@schemastore/package": "0.0.5",
@@ -1093,6 +1093,7 @@
"semver": "^7.2.2",
"sendmail": "1.6.1",
"spread-the-word": "0.8.4",
"stoppable": "1.1.0",
"systeminformation": "^4.23.3",
"temp-write": "^4.0.0",
"tracer": "^1.0.3",

View File

@@ -14,7 +14,7 @@ am(async () => {
// Load server
await core.loadServer('graphql-api', server);
}, error => {
}, (error: NodeJS.ErrnoException) => {
// We should only end here if core has an issue loading
// Log last error

View File

@@ -161,11 +161,10 @@ const connectToMothership = async () => {
});
};
// Return an object with a server and start/stop async methods.
export const server = {
server: stoppableServer,
async start() {
const retryConnection = async error => {
const retryConnection = async (error: NodeJS.ErrnoException) => {
log.debug(error);
await sleep(5);
await connectToMothership().catch(retryConnection);