Fix user delete process (#25)

- Bump version
This commit is contained in:
Daniel J. Summers 2024-06-15 12:55:45 -04:00
parent c1901a68ec
commit dfd9a873f8
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ use BitBadger\PDODocument\{AutoId, Configuration};
use FeedReaderCentral\Data;
/** The current Feed Reader Central version */
const FRC_VERSION = '1.0.0-beta2';
const FRC_VERSION = '1.0.0-beta3';
/**
* Drop .0 or .0.0 from the end of the version to format it for display

View File

@ -172,7 +172,7 @@ function delete_user(string $email): void
}
try {
$fields = [Field::EQ('user_id', $user->id, '@user')];
$fields = [Field::EQ('user_id', $user->id, ':user')];
Custom::nonQuery(
'DELETE FROM ' . Table::ITEM . " WHERE data->>'feed_id' IN (SELECT data->>'id' FROM " . Table::FEED
. ' WHERE ' . Query::whereByFields($fields) . ')', Parameters::addFields($fields, []));