instantly finish dojo decos without metadata
This commit is contained in:
parent
d4d887a5a4
commit
baf06bbda2
@ -40,9 +40,9 @@ export const placeDecoInComponentController: RequestHandler = async (req, res) =
|
|||||||
if (meta.capacityCost) {
|
if (meta.capacityCost) {
|
||||||
component.DecoCapacity -= meta.capacityCost;
|
component.DecoCapacity -= meta.capacityCost;
|
||||||
}
|
}
|
||||||
if (meta.price == 0 && meta.ingredients.length == 0) {
|
}
|
||||||
deco.CompletionTime = new Date();
|
if (!meta || (meta.price == 0 && meta.ingredients.length == 0)) {
|
||||||
}
|
deco.CompletionTime = new Date();
|
||||||
}
|
}
|
||||||
|
|
||||||
await guild.save();
|
await guild.save();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user