18 lines
408 B
PHP
18 lines
408 B
PHP
<?php declare(strict_types=1);
|
|
|
|
use BitBadger\PDODocument\RemoveFields;
|
|
use MyPrayerJournal\Table;
|
|
use MyPrayerJournal\UI\{Component, Layout};
|
|
|
|
require '../../start.php';
|
|
|
|
$req = validate_request($_GET['id'], ['PATCH'], false);
|
|
|
|
RemoveFields::byId(Table::REQUEST, $req->id, ['snoozedUntil']);
|
|
$req->snoozedUntil = null;
|
|
|
|
// TODO: message
|
|
Layout::bareHead();
|
|
Component::requestItem($req);
|
|
Layout::bareFoot();
|