Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
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
nanahira
srvpro
Commits
0a0756a4
Commit
0a0756a4
authored
Jul 23, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no more escape
parent
9ef71506
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
data-manager/DataManager.js
data-manager/DataManager.js
+5
-5
data-manager/DataManager.ts
data-manager/DataManager.ts
+5
-5
No files found.
data-manager/DataManager.js
View file @
0a0756a4
...
...
@@ -266,8 +266,8 @@ class DataManager {
const
queryBuilder
=
repo
.
createQueryBuilder
(
"
duelLog
"
)
.
where
(
"
1
"
);
if
(
roomName
!=
null
&&
roomName
.
length
)
{
const
escapedRoomName
=
this
.
getEscapedString
(
roomName
);
queryBuilder
.
andWhere
(
"
duelLog.name = :
escapedRoomName
"
,
{
escapedR
oomName
});
//
const escapedRoomName = this.getEscapedString(roomName);
queryBuilder
.
andWhere
(
"
duelLog.name = :
roomName
"
,
{
r
oomName
});
}
if
(
duelCount
!=
null
&&
!
isNaN
(
duelCount
))
{
queryBuilder
.
andWhere
(
"
duelLog.duelCount = :duelCount
"
,
{
duelCount
});
...
...
@@ -276,9 +276,9 @@ class DataManager {
let
innerQuery
=
"
select id from duel_log_player where duel_log_player.duelLogId = duelLog.id
"
;
const
innerQueryParams
=
{};
if
(
playerName
!=
null
&&
playerName
.
length
)
{
const
escapedPlayerName
=
this
.
getEscapedString
(
playerName
);
innerQuery
+=
"
and duel_log_player.realName = :
escapedP
layerName
"
;
innerQueryParams
.
escapedPlayerName
=
escapedP
layerName
;
//
const escapedPlayerName = this.getEscapedString(playerName);
innerQuery
+=
"
and duel_log_player.realName = :
p
layerName
"
;
innerQueryParams
.
playerName
=
p
layerName
;
}
if
(
playerScore
!=
null
&&
!
isNaN
(
playerScore
))
{
innerQuery
+=
"
and duel_log_player.score = :playerScore
"
;
...
...
data-manager/DataManager.ts
View file @
0a0756a4
...
...
@@ -274,8 +274,8 @@ export class DataManager {
const
queryBuilder
=
repo
.
createQueryBuilder
(
"
duelLog
"
)
.
where
(
"
1
"
);
if
(
roomName
!=
null
&&
roomName
.
length
)
{
const
escapedRoomName
=
this
.
getEscapedString
(
roomName
);
queryBuilder
.
andWhere
(
"
duelLog.name = :
escapedRoomName
"
,
{
escapedR
oomName
});
//
const escapedRoomName = this.getEscapedString(roomName);
queryBuilder
.
andWhere
(
"
duelLog.name = :
roomName
"
,
{
r
oomName
});
}
if
(
duelCount
!=
null
&&
!
isNaN
(
duelCount
))
{
queryBuilder
.
andWhere
(
"
duelLog.duelCount = :duelCount
"
,
{
duelCount
});
...
...
@@ -284,9 +284,9 @@ export class DataManager {
let
innerQuery
=
"
select id from duel_log_player where duel_log_player.duelLogId = duelLog.id
"
;
const
innerQueryParams
:
any
=
{};
if
(
playerName
!=
null
&&
playerName
.
length
)
{
const
escapedPlayerName
=
this
.
getEscapedString
(
playerName
);
innerQuery
+=
"
and duel_log_player.realName = :
escapedP
layerName
"
;
innerQueryParams
.
escapedPlayerName
=
escapedP
layerName
;
//
const escapedPlayerName = this.getEscapedString(playerName);
innerQuery
+=
"
and duel_log_player.realName = :
p
layerName
"
;
innerQueryParams
.
playerName
=
p
layerName
;
}
if
(
playerScore
!=
null
&&
!
isNaN
(
playerScore
))
{
innerQuery
+=
"
and duel_log_player.score = :playerScore
"
;
...
...
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