mirror of
https://github.com/vran-dev/databasir.git
synced 2025-08-08 17:32:14 +08:00
@@ -108,7 +108,12 @@ public class DocumentService {
|
||||
eventPublisher.publish(new DocumentUpdated(diff, version + 1, version, projectId));
|
||||
} else {
|
||||
saveNewDocument(current, 1L, projectId);
|
||||
RootDiff diff = Diffs.diff(null, current);
|
||||
RootDiff diff = null;
|
||||
try {
|
||||
diff = Diffs.diff(null, current);
|
||||
} catch (Exception e) {
|
||||
log.error("diff project " + projectId + " error, fallback diff type to NONE", e);
|
||||
}
|
||||
eventPublisher.publish(new DocumentUpdated(diff, 1L, null, projectId));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user