1
0

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

@@ -83,12 +83,12 @@ final class settings extends core implements record_interface
* @param int $$account The account identifier
* @param int $$active Is the record active?
*
* @return int|false The record identifier, if created
* @return record|false The record, if created
*/
public function write(
int $$account,
bool $$active = true,
): int|false {
): record|false {
$$record = $$this->database->record(
$$this->database->count() + 1,
$$account,
@@ -101,7 +101,7 @@ final class settings extends core implements record_interface
$$created = $$this->database->write($$record);
// Exit (success)
return $$created ? $$record->identifier : false;
return $$created ? $$record : false;
}
/**