Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ridho Fata Ulwan
land-monitoring-api
Commits
76966b03
Commit
76966b03
authored
1 year ago
by
Ridho Fata Ulwan
Browse files
Options
Download
Email Patches
Plain Diff
Fix measurement error
parent
876d3b93
main
development
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controllers/measurement.js
+0
-5
controllers/measurement.js
with
0 additions
and
5 deletions
+0
-5
controllers/measurement.js
View file @
76966b03
...
...
@@ -192,11 +192,6 @@ export const createMeasurement = async (req, res) => {
return
res
.
status
(
401
).
send
({
success
:
false
,
message
:
`Land is not owned by you
${
user_id
}
`
});
}
const
measurement
=
await
Measurement
.
findOne
({
where
:
{
land_id
:
land_id
},
order
:
[[
'
created_at
'
,
'
DESC
'
]]
});
if
(
!
measurement
)
{
return
res
.
status
(
404
).
send
({
success
:
false
,
message
:
'
Measurement not found
'
});
}
const
ID
=
uuidv4
().
substring
(
0
,
11
);
await
Measurement
.
create
({
id
:
ID
,
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help