ToDontThings

we should have threaded a long time ago I think, whoops
C
Calego•1,007d ago
@mrpink52 Something to check: ToDoListData.deleteToDo, is that async?
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
ah right they return the game.users... thing, which is a promise, which makes them await-able
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
yeah wtf
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
Ahh that'd do it Should be:
return game.users.get(relevantToDo.userId)?.setFlag(ToDoList.ID, ToDoList.FLAGS.TODOS, keyDeletion);
return game.users.get(relevantToDo.userId)?.setFlag(ToDoList.ID, ToDoList.FLAGS.TODOS, keyDeletion);
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
Correct!
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
the window rerenders before the DB is done deleting things which causes bad juju when you edit those things
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
yeah that was a wierd one @mrpink52 one more, make sure you're returning from updateToDo
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
https://hackmd.io/@akrigline/ByHFgUZ6u/%2FhxB4-nbQRCyPDbPCsqTupw#V-Wrapping-Up There's a final thing in this section, do me a favor and double check yours matches
HackMD
Foundry VTT Module Making for Beginners - HackMD
A start-to-finish tutorial which walks through all of the steps needed to create a Foundry VTT module.
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
added it 🙂
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
hackmd is dope
UU
Unknown User•1,007d ago
C
Calego•1,007d ago
haha