Sync all roles on any role change.
This commit is contained in:
parent
2c04fa453c
commit
b7e5d9f71a
|
@ -117,7 +117,7 @@ export async function save(ctx: UserCtx<SaveRoleRequest, SaveRoleResponse>) {
|
|||
})
|
||||
await replication.replicate({
|
||||
filter: (doc: any, params: any) => {
|
||||
return doc._id === _id
|
||||
return doc._id && doc._id.startsWith("role_")
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue