Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
0e207abf
Commit
0e207abf
authored
Jul 29, 2021
by
velayat
Browse files
fix bug in server
parent
ac011d89
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app.service.ts
View file @
0e207abf
...
...
@@ -425,8 +425,6 @@ export class AppService implements OnApplicationBootstrap {
const
last_update
=
await
this
.
resultModel
.
find
().
sort
({
updatedAt
:
-
1
});
const
last_create
=
await
this
.
resultModel
.
find
().
sort
({
createdAt
:
-
1
});
let
date
:
number
;
console
.
log
(
last_update
[
0
][
'
updatedAt
'
]);
console
.
log
(
last_create
[
0
][
'
createdAt
'
]);
if
(
last_update
[
0
][
'
updatedAt
'
]
>=
last_create
[
0
][
'
createdAt
'
])
{
date
=
last_update
[
0
][
'
updatedAt
'
];
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment