Skip to content

Commit

Permalink
Merge pull request #76 from fanzru/staging
Browse files Browse the repository at this point in the history
Bump BE staging to main
  • Loading branch information
kaenova authored Jun 15, 2022
2 parents 3d779c7 + 4acaa49 commit 48f02ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/app/Http/Controllers/TikumController.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Models\Tikum;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;

class TikumController extends Controller
{
Expand All @@ -16,7 +17,7 @@ class TikumController extends Controller
public function index()
{
try {
$tikum = Tikum::with('user:id,name,created_at,updated_at')->get();
$tikum = Tikum::with('user:id,name,created_at,updated_at')->where('waktu_kumpul', '>', DB::raw('NOW()'))->orderByDesc('waktu_kumpul')->get();
return response($tikum, 200);
} catch (\Exception $e) {
return response("Internal Server Error", 500);
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/screen/home/components/tikum/mytikum_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class MyTikumCard extends StatelessWidget {
),
if (tikum.deskripsi != null)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const Text(
"Deskripsi",
Expand Down
2 changes: 1 addition & 1 deletion mobile/lib/screen/home/components/tikum/tikum_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class TikumCard extends StatelessWidget {
),
if (tikum.deskripsi != null)
Column(
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
const Text(
"Deskripsi",
Expand Down

0 comments on commit 48f02ca

Please sign in to comment.