Skip to content

Commit b93ca93

Browse files
committed
fix: update broadcast to broadcastSender false
1 parent c8e8390 commit b93ca93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
121121

122122

123123
crud.socket.create(config)
124-
config.broadcast = false
124+
config.broadcastSender = false
125125

126126
if (config.email && config.password) {
127127
let request = {
@@ -276,7 +276,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
276276

277277
if (!newObject.object._id)
278278
newObject.$filter = {
279-
query: [{ key: 'path', value: pathName, operator: '$eq' }]
279+
query: [{ key: 'path', value: pathName, operator: '$or' }]
280280
}
281281

282282
response = await runStore(newObject);
@@ -379,7 +379,7 @@ module.exports = async function file(CoCreateConfig, configPath, match) {
379379
let data = { array, object }
380380
if (!object._id && object.path)
381381
data.$filter = {
382-
query: [{ key: 'path', value: object.path, operator: '$eq' }]
382+
query: [{ key: 'path', value: object.path, operator: '$or' }]
383383
}
384384

385385
if (match.length && isMatch)

0 commit comments

Comments
 (0)