mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(web): bypass adapter list error (#2903)
This commit is contained in:
@@ -14,6 +14,10 @@ const unimplemented = () => {
|
|||||||
throw new Error('Not implemented');
|
throw new Error('Not implemented');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const bypassList = async () => {
|
||||||
|
return [];
|
||||||
|
};
|
||||||
|
|
||||||
export const WorkspaceAdapters = {
|
export const WorkspaceAdapters = {
|
||||||
[WorkspaceFlavour.AFFINE]: AffineAdapter,
|
[WorkspaceFlavour.AFFINE]: AffineAdapter,
|
||||||
[WorkspaceFlavour.LOCAL]: LocalAdapter,
|
[WorkspaceFlavour.LOCAL]: LocalAdapter,
|
||||||
@@ -25,7 +29,7 @@ export const WorkspaceAdapters = {
|
|||||||
// todo: implement this
|
// todo: implement this
|
||||||
CRUD: {
|
CRUD: {
|
||||||
get: unimplemented,
|
get: unimplemented,
|
||||||
list: unimplemented,
|
list: bypassList,
|
||||||
delete: unimplemented,
|
delete: unimplemented,
|
||||||
create: unimplemented,
|
create: unimplemented,
|
||||||
},
|
},
|
||||||
@@ -47,7 +51,7 @@ export const WorkspaceAdapters = {
|
|||||||
// todo: implement this
|
// todo: implement this
|
||||||
CRUD: {
|
CRUD: {
|
||||||
get: unimplemented,
|
get: unimplemented,
|
||||||
list: unimplemented,
|
list: bypassList,
|
||||||
delete: unimplemented,
|
delete: unimplemented,
|
||||||
create: unimplemented,
|
create: unimplemented,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user