Refactoring

* replace TypeORM with Kysely query builder
* refactor migrations
* other changes and fixes
This commit is contained in:
Philipinho
2024-03-29 01:46:11 +00:00
parent cacb5606b1
commit c18c9ae02b
122 changed files with 2619 additions and 3541 deletions
@@ -53,7 +53,8 @@ export class HistoryExtension implements Extension {
async recordHistory(pageId: string) {
try {
const page = await this.pageService.findWithContent(pageId);
const includeContent = true;
const page = await this.pageService.findById(pageId, includeContent);
// Todo: compare if data is the same as the previous version
await this.pageHistoryService.saveHistory(page);
console.log(`New history created for: ${pageId}`);