mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
create a nasty hack to get rid of the persistent Tavern quest exhaust sprites
This commit is contained in:
@@ -273,6 +273,7 @@ module.exports.tavernQuest = {};
|
|||||||
var tavernQ = {_id:'habitrpg','quest.key':{$ne:null}};
|
var tavernQ = {_id:'habitrpg','quest.key':{$ne:null}};
|
||||||
process.nextTick(function(){
|
process.nextTick(function(){
|
||||||
mongoose.model('Group').findOne(tavernQ, function(err,tavern){
|
mongoose.model('Group').findOne(tavernQ, function(err,tavern){
|
||||||
|
return; // No tavern quest // FIXME do this properly!
|
||||||
if (!tavern) return; // No tavern quest
|
if (!tavern) return; // No tavern quest
|
||||||
|
|
||||||
var quest = tavern.quest.toObject();
|
var quest = tavern.quest.toObject();
|
||||||
|
|||||||
Reference in New Issue
Block a user