various fixes
This commit is contained in:
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -4,11 +4,11 @@
|
||||
"src": "main.js",
|
||||
"isEntry": true,
|
||||
"css": [
|
||||
"assets/main.ffd76273.css"
|
||||
"assets/main.587d6006.css"
|
||||
]
|
||||
},
|
||||
"main.css": {
|
||||
"file": "assets/main.ffd76273.css",
|
||||
"file": "assets/main.587d6006.css",
|
||||
"src": "main.css"
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
white-space: nowrap;
|
||||
max-width: 340px;
|
||||
max-width: 400px;
|
||||
// height: 34px;
|
||||
padding: 8px 16px;
|
||||
// border-bottom: 1px solid #ccc;
|
||||
@@ -23,7 +23,7 @@
|
||||
font-size: 15px;
|
||||
font-weight: normal;
|
||||
white-space: nowrap;
|
||||
max-width: 340px;
|
||||
max-width: 400px;
|
||||
height: 48px;
|
||||
padding: 4px 16px;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -327,6 +327,7 @@ class RecordController extends Controller
|
||||
uploadFromUrl: ""
|
||||
);
|
||||
} else {
|
||||
|
||||
$this->recordService->update(
|
||||
id: $request->input("record.id"),
|
||||
data: $request->input("record.data"),
|
||||
|
||||
@@ -98,8 +98,7 @@ readonly class RecordService
|
||||
* @throws LucentException
|
||||
* @throws ValidatorException
|
||||
*/
|
||||
public
|
||||
function update(
|
||||
public function update(
|
||||
string $id,
|
||||
array $data,
|
||||
string $status = "draft",
|
||||
@@ -128,7 +127,8 @@ readonly class RecordService
|
||||
}
|
||||
|
||||
if (Status::from($status) === Status::PUBLISHED) {
|
||||
$errors = $this->recordValidator->check($record->schema, $record->data, $uniqueEdgesCollection);
|
||||
$errors = $this->recordValidator->check($record->schema, $formattedData, $uniqueEdgesCollection);
|
||||
|
||||
if ($errors->isNotEmpty()) {
|
||||
$this->recordValidator->throwException($errors);
|
||||
}
|
||||
@@ -148,9 +148,6 @@ readonly class RecordService
|
||||
_file: $record->_file,
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
RecordRepo::update($newRecord);
|
||||
if ($updateEdges) {
|
||||
EdgeRepo::update($newRecord->id, $uniqueEdgesCollection);
|
||||
@@ -162,8 +159,7 @@ readonly class RecordService
|
||||
|
||||
/**
|
||||
*/
|
||||
public
|
||||
function changeStatusBulk(
|
||||
public function changeStatusBulk(
|
||||
string $status,
|
||||
array $recordsIds,
|
||||
): void
|
||||
|
||||
Reference in New Issue
Block a user