Skip to content

Commit

Permalink
refactor: Remove changes to reward object
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderBlanchardAC committed Oct 24, 2024
1 parent 3599db2 commit 50bbf74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
13 changes: 1 addition & 12 deletions code/web/sys/Community/Reward.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ class Reward extends DataObject {
public $name;
public $description;
public $rewardType;
public $badgeImage;

public static function getObjectStructure($context = ''):array {
global $serverName;
$rewardType = self::getRewardType();
return [
'id' => [
Expand Down Expand Up @@ -40,13 +38,6 @@ public static function getObjectStructure($context = ''):array {
'description' => 'The type of reward',
'values' => $rewardType,
],
'badgeImage' => [
'property' => 'badgeImage',
'type' => 'image',
'label' => 'Badge Image',
'path' => '/data/aspen-discovery/' . $serverName . '/uploads/reward_images',
'displayUrl' => '/Community/ViewImage?id=',
],
];
}

Expand All @@ -72,7 +63,5 @@ public static function getRewardList(): array {
return $rewardList;
}

// private function generateImage() {
// if(!empty($this->))
// }

}
3 changes: 1 addition & 2 deletions code/web/sys/DBMaintenance/community_engagement_updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ function getCommunityEngagementUpdates() {
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(100) NOT NULL,
description VARCHAR(255),
rewardType INT(11) DEFAULT -1,
badgeImage VARCHAR(512) NOT NULL
rewardType INT(11) DEFAULT -1
)ENGINE = InnoDB",
],
],
Expand Down

0 comments on commit 50bbf74

Please sign in to comment.