Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
strapi-setup-file
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit b287e4eb
authored
2022-10-06 13:34:00 +0530
by
kashif ansari
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
logs removed
1 parent
29949a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
src/api/channel-partner/controllers/channel-partner.js
src/api/channel-partner/controllers/channel-partner.js
View file @
b287e4e
...
@@ -12,7 +12,6 @@ module.exports = createCoreController(
...
@@ -12,7 +12,6 @@ module.exports = createCoreController(
async
create
(
ctx
)
{
async
create
(
ctx
)
{
// const currentChannelPartner = ctx.state.user;
// const currentChannelPartner = ctx.state.user;
const
reraNumber
=
ctx
.
request
.
body
?.
data
?.
reraNumber
;
const
reraNumber
=
ctx
.
request
.
body
?.
data
?.
reraNumber
;
console
.
log
(
`Rera Number
${
reraNumber
}
`
);
if
(
!
reraNumber
)
{
if
(
!
reraNumber
)
{
return
ctx
.
bad
(
`Please specify your rera number.`
);
return
ctx
.
bad
(
`Please specify your rera number.`
);
}
}
...
@@ -24,8 +23,6 @@ module.exports = createCoreController(
...
@@ -24,8 +23,6 @@ module.exports = createCoreController(
filters
:
{
reraNumber
:
reraNumber
},
filters
:
{
reraNumber
:
reraNumber
},
}
}
);
);
console
.
log
(
'Existing Channel Partner'
);
console
.
log
(
existingChannelPartner
);
if
(
existingChannelPartner
&&
existingChannelPartner
.
length
!==
0
)
{
if
(
existingChannelPartner
&&
existingChannelPartner
.
length
!==
0
)
{
return
ctx
.
badRequest
(
return
ctx
.
badRequest
(
`Channel Partner Already Exist with the Given rera number
${
reraNumber
}
`
`Channel Partner Already Exist with the Given rera number
${
reraNumber
}
`
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment