Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ejercicio2-framework-back
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josue
ejercicio2-framework-back
Commits
ba5a65ce
Commit
ba5a65ce
authored
Sep 15, 2020
by
Sebastian Chicoma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enviando usuario en la sincronización
parent
5328cb69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
AgentStatusEnum.java
.../java/com/bytesw/bytebot/model/enums/AgentStatusEnum.java
+1
-0
AgentService.java
src/main/java/com/bytesw/bytebot/service/AgentService.java
+9
-0
No files found.
src/main/java/com/bytesw/bytebot/model/enums/AgentStatusEnum.java
View file @
ba5a65ce
...
...
@@ -20,6 +20,7 @@ import java.util.Map;
public
enum
AgentStatusEnum
{
CREATED
(
"CR"
),
PENDING_SYNCHRONIZED
(
"PS"
),
DEPLOYED
(
"DP"
),
DELETED
(
"DE"
);
...
...
src/main/java/com/bytesw/bytebot/service/AgentService.java
View file @
ba5a65ce
...
...
@@ -163,6 +163,8 @@ public class AgentService extends CustomPaginationService<Agent> {
}
}
boolean
changeToPendingSynchronized
=
false
;
for
(
FrequentQuestionBean
frequentQuestionBean
:
agent
.
getFrequentQuestions
())
{
FrequentQuestion
frequentQuestionBD
=
null
;
...
...
@@ -179,6 +181,8 @@ public class AgentService extends CustomPaginationService<Agent> {
frequentQuestionBD
.
setStatus
(
FrequentQuestionStatusEnum
.
PENDING_SYNCHRONIZED
);
frequentQuestionBD
.
setUploadDate
(
LocalDateTime
.
now
());
frequentQuestionBD
.
setUuid
(
frequentQuestionBean
.
getUuid
());
changeToPendingSynchronized
=
true
;
}
frequentQuestionBD
.
setAgent
(
agentBD
);
...
...
@@ -191,6 +195,11 @@ public class AgentService extends CustomPaginationService<Agent> {
}
if
(
changeToPendingSynchronized
)
{
agentBD
.
setStatus
(
AgentStatusEnum
.
PENDING_SYNCHRONIZED
);
agentBD
=
agentRepository
.
save
(
agentBD
);
}
// Deployment channels
if
(
agent
.
getDeploymentChannels
()
==
null
)
{
agent
.
setDeploymentChannels
(
new
ArrayList
<>());
...
...
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