mirror of
https://github.com/danbulant/Shasha
synced 2026-07-05 11:00:58 +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)
|
if (r.timedPunishments)
|
||||||
for (const U in r.timedPunishments) {
|
for (const U in r.timedPunishments) {
|
||||||
const tr = new TimedPunishment(r.timedPunishments[U]);
|
const tr = new TimedPunishment(r.timedPunishments[U]);
|
||||||
|
tr.setDataDuration(tr.duration.invoked, tr.duration.until);
|
||||||
console.log(timedPunishments.set(U, tr));
|
console.log(timedPunishments.set(U, tr));
|
||||||
}
|
}
|
||||||
r.infractions = infractions;
|
r.infractions = infractions;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue