Sync all roles on any role change.

This commit is contained in:
Sam Rose 2024-03-06 16:58:51 +00:00
parent 2c04fa453c
commit b7e5d9f71a
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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_")
},
})
}