1
0
forked from mirzaev/pot-php

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

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