Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ehasa-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WIMMA Lab 2019
Overflow
ehasa-backend
Commits
94a246a1
Commit
94a246a1
authored
5 years ago
by
L4168
Browse files
Options
Downloads
Patches
Plain Diff
convert score timestamps to unix
parent
f647667e
No related branches found
Branches containing commit
No related tags found
3 merge requests
!59
Development to master
,
!54
Development to testing
,
!50
Mockdata replay
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/score/score.entity.ts
+1
-1
1 addition, 1 deletion
src/score/score.entity.ts
src/score/score.service.ts
+1
-0
1 addition, 0 deletions
src/score/score.service.ts
with
2 additions
and
1 deletion
src/score/score.entity.ts
+
1
−
1
View file @
94a246a1
...
@@ -12,7 +12,7 @@ import { FactionEntity } from '../faction/faction.entity';
...
@@ -12,7 +12,7 @@ import { FactionEntity } from '../faction/faction.entity';
export
class
ScoreEntity
{
export
class
ScoreEntity
{
@
PrimaryGeneratedColumn
(
'
uuid
'
)
scoreId
:
string
;
@
PrimaryGeneratedColumn
(
'
uuid
'
)
scoreId
:
string
;
@
Column
({
type
:
'
float
'
})
score
:
number
;
@
Column
({
type
:
'
float
'
})
score
:
number
;
@
CreateDate
Column
({
type
:
'
timestamp
'
})
scoreTimeStamp
:
Timestamp
;
@
Column
({
type
:
'
float
'
})
scoreTimeStamp
:
number
;
@
ManyToOne
(
type
=>
FactionEntity
,
factionName
=>
factionName
.
factionId
,
{
@
ManyToOne
(
type
=>
FactionEntity
,
factionName
=>
factionName
.
factionId
,
{
onDelete
:
'
CASCADE
'
,
onDelete
:
'
CASCADE
'
,
...
...
This diff is collapsed.
Click to expand it.
src/score/score.service.ts
+
1
−
0
View file @
94a246a1
...
@@ -44,6 +44,7 @@ export class ScoreService {
...
@@ -44,6 +44,7 @@ export class ScoreService {
}
}
// add the score for Faction
// add the score for Faction
const
newScore
=
await
this
.
scoreRepository
.
create
(
scoreData
);
const
newScore
=
await
this
.
scoreRepository
.
create
(
scoreData
);
newScore
.
scoreTimeStamp
=
Date
.
now
();
await
this
.
scoreRepository
.
insert
(
newScore
);
await
this
.
scoreRepository
.
insert
(
newScore
);
return
{
return
{
message
:
'
Score updated!
'
,
message
:
'
Score updated!
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment