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 7c8505a2
authored
2022-09-27 12:15:50 +0530
by
Harish Patel
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Changes
1 parent
ad149cbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
src/api/channel-partner/content-types/channel-partner/schema.json
src/extensions/users-permissions/strapi-server.js
src/api/channel-partner/content-types/channel-partner/schema.json
View file @
7c8505a
...
...
@@ -8,7 +8,7 @@
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
fals
e
"draftAndPublish"
:
tru
e
},
"pluginOptions"
:
{},
"attributes"
:
{
...
...
src/extensions/users-permissions/strapi-server.js
View file @
7c8505a
...
...
@@ -42,7 +42,11 @@ const userPermissionExtension = (plugin) => {
.
findOne
({
populate
:
[
"user"
],
where
:
{
$and
:
[{
reraNumber
:
mahareraNumber
},
{
mobileNo
:
mobileNumber
}],
$and
:
[
{
publishedAt
:
{
$notNull
:
true
}
},
{
reraNumber
:
mahareraNumber
},
{
mobileNo
:
mobileNumber
},
],
},
});
...
...
@@ -89,6 +93,8 @@ const userPermissionExtension = (plugin) => {
// Send an email to the user.
await
strapi
.
plugin
(
"email"
).
service
(
"email"
).
send
(
emailToSend
);
// TODO: Send SMS.
ctx
.
send
({
ok
:
true
,
message
:
"otp sent"
});
};
...
...
@@ -106,7 +112,11 @@ const userPermissionExtension = (plugin) => {
.
findOne
({
populate
:
[
"user"
],
where
:
{
$and
:
[{
reraNumber
:
mahareraNumber
},
{
mobileNo
:
mobileNumber
}],
$and
:
[
{
publishedAt
:
{
$notNull
:
true
}
},
{
reraNumber
:
mahareraNumber
},
{
mobileNo
:
mobileNumber
},
],
},
});
...
...
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