3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Persist fix (#263)

This commit is contained in:
metal 2021-09-04 17:09:49 +01:00 committed by GitHub
parent 6f4737a2e2
commit 3385841702
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ export const StoreDataEvt = persistEvt({
const persistedRoles = config.persisted_roles;
if (persistedRoles.length && member.roles) {
const rolesToPersist = intersection(persistedRoles, member.roles);
const rolesToPersist = intersection(persistedRoles, [...member.roles.cache.keys()]);
if (rolesToPersist.length) {
persist = true;
persistData.roles = rolesToPersist;