|
@@ -521,7 +521,7 @@ export default class {
|
|
lock.threads[currentFeed].subscribers.length === 0) {
|
|
lock.threads[currentFeed].subscribers.length === 0) {
|
|
logger.warn(`nobody subscribes thread ${currentFeed}, removing from feed`);
|
|
logger.warn(`nobody subscribes thread ${currentFeed}, removing from feed`);
|
|
delete lock.threads[currentFeed];
|
|
delete lock.threads[currentFeed];
|
|
- this.cache[parseLink(currentFeed).userName].pullOrder = 0;
|
|
|
|
|
|
+ (this.cache[parseLink(currentFeed).userName] || {} as {pullOrder: number}).pullOrder = 0;
|
|
lock.feed.splice(lock.workon, 1);
|
|
lock.feed.splice(lock.workon, 1);
|
|
fs.writeFileSync(path.resolve(this.lockfile), JSON.stringify(lock));
|
|
fs.writeFileSync(path.resolve(this.lockfile), JSON.stringify(lock));
|
|
this.work();
|
|
this.work();
|