models write() returns record and commented useless account record update

This commit is contained in:
2026-01-11 12:22:36 +05:00
parent 8225969e37
commit 8389137f7c
3 changed files with 8 additions and 8 deletions

View File

@@ -228,11 +228,11 @@ final class account extends core implements record_interface
$$settings->write(account: $$record->identifier);
// Writing the record into the database
$$record = $$this->database->read(
/* $$record = $$this->database->read(
filter: fn(record $$_record) => $$_record->identifier === $$record->identifier,
update: fn(record &$$_record) => $$_record = $$record,
amount: 1
)[0] ?? null;
)[0] ?? null; */
// Exit (success)
return $$record;