Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
270
Merge Requests
35
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
726ed200
Commit
726ed200
authored
10 minutes ago
by
Ben Hayward
Browse files
Options
Download
Do not manually export value from channel endpoint
parent
238646bc
fix/user-exportation-changes
1 merge request
!464
OwnerObj exportation changes
Pipeline
#117295436
failed with stages
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Controllers/api/v1/channel.php
View file @
726ed200
...
...
@@ -70,7 +70,6 @@ class channel implements Interfaces\Api
$response
[
'channel'
][
'briefdescription'
]
=
$response
[
'channel'
][
'briefdescription'
]
?:
''
;
$response
[
'channel'
][
'city'
]
=
$response
[
'channel'
][
'city'
]
?:
""
;
$response
[
'channel'
][
'gender'
]
=
$response
[
'channel'
][
'gender'
]
?:
""
;
$response
[
'channel'
][
'dob'
]
=
$response
[
'channel'
][
'dob'
]
?:
""
;
if
(
!
$user
->
merchant
||
!
$supporters_count
)
{
$db
=
new
Core\Data\Call
(
'entities_by_time'
);
...
...
@@ -234,7 +233,7 @@ class channel implements Interfaces\Api
$update
=
[];
foreach
([
'name'
,
'website'
,
'briefdescription'
,
'gender'
,
'dob'
,
'city'
,
'coordinates'
,
'monetized'
]
as
$field
)
{
'city'
,
'coordinates'
,
'monetized'
]
as
$field
)
{
if
(
isset
(
$_POST
[
$field
]))
{
$update
[
$field
]
=
$_POST
[
$field
];
$owner
->
$field
=
$_POST
[
$field
];
...
...
This diff is collapsed.
Please
register
or
sign in
to comment