mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
fix: sync bug
This commit is contained in:
@@ -35,8 +35,8 @@ export abstract class ServiceBaseClass {
|
||||
name: string,
|
||||
callback: (meta: Map<string, any>) => void
|
||||
) {
|
||||
const db = await this.database.getDatabase(workspace);
|
||||
db.history.onPush(name, callback);
|
||||
// const db = await this.database.getDatabase(workspace);
|
||||
// db.history.onPush(name, callback);
|
||||
}
|
||||
|
||||
async onHistoryRevoke(
|
||||
@@ -44,8 +44,8 @@ export abstract class ServiceBaseClass {
|
||||
name: string,
|
||||
callback: (meta: Map<string, any>) => void
|
||||
) {
|
||||
const db = await this.database.getDatabase(workspace);
|
||||
db.history.onPop(name, callback);
|
||||
// const db = await this.database.getDatabase(workspace);
|
||||
// db.history.onPop(name, callback);
|
||||
}
|
||||
|
||||
async undo(workspace: string) {
|
||||
|
||||
@@ -32,7 +32,7 @@ async function _getCurrentToken() {
|
||||
|
||||
const _enabled = {
|
||||
demo: [],
|
||||
AFFiNE: process.env['NX_KECK'] ? ['idb', 'keck'] : ['idb'],
|
||||
AFFiNE: process.env['NX_KECK'] ? ['keck'] : ['idb'],
|
||||
} as any;
|
||||
|
||||
async function _getBlockDatabase(
|
||||
|
||||
Reference in New Issue
Block a user