fix(server): update ocr & faces after asset edit (#29303)
* fix: update ocr & faces after asset edit * chore: remove client-side refresh * fix(server): sync asset OCR visibility changes * chore: prettier format * test: missing updatedAt * chore: remove comment * chore: fix test * chore: update migration timestamp * chore(server): AssetOcrSyncReset * chore: migration timestamps --------- Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
@@ -56,6 +56,7 @@ describe(OcrService.name, () => {
|
||||
boxScore: 0.99,
|
||||
id: expect.any(String),
|
||||
updateId: expect.any(String),
|
||||
updatedAt: expect.any(Date),
|
||||
text: 'Test OCR',
|
||||
textScore: 0.95,
|
||||
isVisible: true,
|
||||
@@ -107,6 +108,7 @@ describe(OcrService.name, () => {
|
||||
boxScore: 0.7,
|
||||
id: expect.any(String),
|
||||
updateId: expect.any(String),
|
||||
updatedAt: expect.any(Date),
|
||||
text: 'One',
|
||||
textScore: 0.9,
|
||||
isVisible: true,
|
||||
@@ -124,6 +126,7 @@ describe(OcrService.name, () => {
|
||||
boxScore: 0.67,
|
||||
id: expect.any(String),
|
||||
updateId: expect.any(String),
|
||||
updatedAt: expect.any(Date),
|
||||
text: 'Two',
|
||||
textScore: 0.89,
|
||||
isVisible: true,
|
||||
@@ -141,6 +144,7 @@ describe(OcrService.name, () => {
|
||||
boxScore: 0.65,
|
||||
id: expect.any(String),
|
||||
updateId: expect.any(String),
|
||||
updatedAt: expect.any(Date),
|
||||
text: 'Three',
|
||||
textScore: 0.88,
|
||||
isVisible: true,
|
||||
@@ -158,6 +162,7 @@ describe(OcrService.name, () => {
|
||||
boxScore: 0.62,
|
||||
id: expect.any(String),
|
||||
updateId: expect.any(String),
|
||||
updatedAt: expect.any(Date),
|
||||
text: 'Four',
|
||||
textScore: 0.87,
|
||||
isVisible: true,
|
||||
@@ -175,6 +180,7 @@ describe(OcrService.name, () => {
|
||||
boxScore: 0.6,
|
||||
id: expect.any(String),
|
||||
updateId: expect.any(String),
|
||||
updatedAt: expect.any(Date),
|
||||
text: 'Five',
|
||||
textScore: 0.86,
|
||||
isVisible: true,
|
||||
|
||||
Reference in New Issue
Block a user