fix: proper table reference for PostMeta (#7)

Reviewed-on: https://codeberg.org/vlw/wp/pulls/7
This commit is contained in:
Victor Westerlund 2026-02-16 11:27:16 +01:00
parent a70015e314
commit 28f31250fa

View file

@ -93,7 +93,7 @@
*/ */
public function delete(): void { public function delete(): void {
$this->db $this->db
->from(PostMetaTable::TABLE_NAME) ->from(Database::get_table(PostMetaTable::TABLE_NAME))
->delete([PostMetaTable::META_ID->value => $this->id]); ->delete([PostMetaTable::META_ID->value => $this->id]);
} }