-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c39e7cc
commit cfc8574
Showing
34 changed files
with
1,054 additions
and
976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const boot = function boot() { | ||
// boot operations | ||
// boot operations | ||
}; | ||
|
||
module.exports = { | ||
boot | ||
boot | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
const { MoleculerError } = require("moleculer").Errors; | ||
const { MoleculerError } = require('moleculer').Errors; | ||
|
||
const notFound = function notFound(entityName, entityId) { | ||
return new MoleculerError( | ||
'Element not found', 404, 'NOT_FOUND', { entityName, entityId } | ||
); | ||
} | ||
return new MoleculerError( | ||
'Element not found', 404, 'NOT_FOUND', { entityName, entityId } | ||
); | ||
}; | ||
|
||
const roomFull = function roomFull(roomId) { | ||
return new MoleculerError('Full room', 400, 'FULL_ROOM', { roomId }); | ||
} | ||
return new MoleculerError('Full room', 400, 'FULL_ROOM', { roomId }); | ||
}; | ||
|
||
module.exports = { | ||
notFound, | ||
roomFull | ||
notFound, | ||
roomFull | ||
}; |
Oops, something went wrong.