Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygoreplay-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygoreplay-plugin
Commits
4a4fb16c
Commit
4a4fb16c
authored
Oct 14, 2021
by
Sophia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug that mutates date value of lflist array item
parent
13923e5e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
dist/index.js
dist/index.js
+1
-1
src/index.ts
src/index.ts
+1
-1
No files found.
dist/index.js
View file @
4a4fb16c
...
...
@@ -43,7 +43,7 @@ function uploadResult(room) {
}
room
.
finishedAt
.
push
(
moment
());
const
data
=
{
roomSettings
:
Object
.
assign
(
Object
.
assign
({},
room
.
hostinfo
),
{
lflist
:
Object
.
assign
(
Object
.
assign
({},
lflists
[
room
.
hostinfo
.
lflist
]),
{
date
:
lflists
[
room
.
hostinfo
.
lflist
].
date
.
add
(
1
,
"
day
"
).
format
(
"
YYYY.MM
"
)
})
}),
roomSettings
:
Object
.
assign
(
Object
.
assign
({},
room
.
hostinfo
),
{
lflist
:
Object
.
assign
(
Object
.
assign
({},
lflists
[
room
.
hostinfo
.
lflist
]),
{
date
:
lflists
[
room
.
hostinfo
.
lflist
].
date
.
clone
().
add
(
1
,
"
day
"
).
format
(
"
YYYY.MM
"
)
})
}),
players
:
room
.
customPlayerInformation
||
[],
startedAt
:
room
.
startedAt
?
room
.
startedAt
.
map
(
formatTime
)
:
[],
finishedAt
:
room
.
finishedAt
?
room
.
finishedAt
.
map
(
formatTime
)
:
[],
...
...
src/index.ts
View file @
4a4fb16c
...
...
@@ -126,7 +126,7 @@ function uploadResult(room: typeof ROOM_all[0]) {
...
room
.
hostinfo
,
lflist
:
{
...
lflists
[
room
.
hostinfo
.
lflist
],
date
:
lflists
[
room
.
hostinfo
.
lflist
].
date
.
add
(
1
,
"
day
"
).
format
(
"
YYYY.MM
"
),
date
:
lflists
[
room
.
hostinfo
.
lflist
].
date
.
clone
().
add
(
1
,
"
day
"
).
format
(
"
YYYY.MM
"
),
},
},
players
:
room
.
customPlayerInformation
||
[],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment