redis-manager-utils
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -488,9 +488,10 @@ const REDIS = require("redis"); | ||
try { | ||
let list = await that.setPopRandomMembers( wKey , 25 ); | ||
await Redis.setSetFromArray( RC.GENRES[ genre ].TRACKS + ".RECYCLED" , list ); | ||
let set = await that.setPopRandomMembers( wKey , wAmount ); | ||
await that.setSetFromArray( wKey + ".RECYCLED" , set ); | ||
if ( list.length < 1 ) { | ||
await Redis.setStoreUnion( RC.GENRES[ genre ].TRACKS , RC.GENRES[ genre ].TRACKS + ".RECYCLED" ); | ||
await Redis.keyDel( RC.GENRES[ genre ].TRACKS + ".RECYCLED" ); | ||
list = await Redis.setPopRandomMembers( RC.GENRES[ genre ].TRACKS , 25 ); | ||
await that.setStoreUnion( wKey , wKey + ".RECYCLED" ); | ||
await that.keyDel( wKey + ".RECYCLED" ); | ||
set = await that.setPopRandomMembers( wKey , wAmount ); | ||
} | ||
resolve( set ); | ||
} | ||
@@ -497,0 +498,0 @@ catch( error ) { console.log( error ); reject( error ); } |
{ | ||
"name": "redis-manager-utils", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
492
20048