refactor: extract store package (#1109)

This commit is contained in:
Himself65
2023-02-18 02:41:22 -06:00
committed by GitHub
parent af28418e61
commit 9d21c3efbb
34 changed files with 681 additions and 337 deletions
@@ -10,6 +10,9 @@ export const setDefaultAvatar = async (
return;
}
const blob = await getDefaultHeadImgBlob(blocksuiteWorkspace.meta.name);
if (!blob) {
return;
}
const blobStorage = await blocksuiteWorkspace.blobs;
assert(blobStorage, 'No blob storage');
const avatar = await blobStorage.set(blob);