Skip to content

Commit 6557a91

Browse files
chore: srv.operations does not need namespace (#85)
* srv.operations does not need namespace
1 parent d1ef2a2 commit 6557a91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example-cap-server/srv/service/check-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ const priorityHandler = async (context) => {
2929
};
3030

3131
module.exports = async (srv) => {
32-
const { priority } = srv.operations("CheckService");
32+
const { priority } = srv.operations;
3333
srv.on(priority, priorityHandler);
3434
};

src/service/feature-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const redisSendCommandHandler = async (context) => {
126126
};
127127

128128
module.exports = async (srv) => {
129-
const { state, redisRead, redisUpdate, redisSendCommand } = srv.operations("FeatureService");
129+
const { state, redisRead, redisUpdate, redisSendCommand } = srv.operations;
130130
srv.on(state, stateHandler);
131131
srv.on(redisRead, redisReadHandler);
132132
srv.on(redisUpdate, redisUpdateHandler);

0 commit comments

Comments
 (0)