mirror of
https://github.com/danbulant/Shasha
synced 2026-06-18 22:01:17 +00:00
convert DB to DateTime at load
This commit is contained in:
parent
ddaa178c75
commit
d21c564ba8
1 changed files with 1 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ Structures.extend("Guild", u => {
|
|||
if (r.timedPunishments)
|
||||
for (const U in r.timedPunishments) {
|
||||
const tr = new TimedPunishment(r.timedPunishments[U]);
|
||||
tr.setDataDuration(tr.duration.invoked, tr.duration.until);
|
||||
console.log(timedPunishments.set(U, tr));
|
||||
}
|
||||
r.infractions = infractions;
|
||||
|
|
|
|||
Loading…
Reference in a new issue