free-be-account 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -541,7 +541,7 @@ module.exports = (app) => ({
|
|
|
541
541
|
*/
|
|
542
542
|
clearCachedPermission: (app, p = '*') => {
|
|
543
543
|
// clear all cached permission control (user permissions)
|
|
544
|
-
app.cache.keys(`perm_ctrl_${p}`).then(ks => {
|
|
544
|
+
Promise.resolve(app.cache.keys(`perm_ctrl_${p}`)).then(ks => {
|
|
545
545
|
ks.forEach(k => app.cache.del(k))
|
|
546
546
|
});
|
|
547
547
|
},
|