UBERF-7011: Switch to Ref<Blob> (#5661)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-05-27 12:25:57 +05:00
committed by GitHub
parent 27a98e0641
commit 8c6a5f4e9d
158 changed files with 1795 additions and 1049 deletions
@@ -16,7 +16,7 @@
-->
<script lang="ts">
import attachment, { Attachment } from '@hcengineering/attachment'
import core, { Doc, Ref, WithLookup, generateId } from '@hcengineering/core'
import core, { Doc, Ref, WithLookup, generateId, type Blob } from '@hcengineering/core'
import { Document } from '@hcengineering/document'
import notification from '@hcengineering/notification'
import { Panel } from '@hcengineering/panel'
@@ -102,7 +102,7 @@
isStarred = res.length !== 0
})
async function createEmbedding (file: File): Promise<{ file: string, type: string } | undefined> {
async function createEmbedding (file: File): Promise<{ file: Ref<Blob>, type: string } | undefined> {
if (doc === undefined) {
return undefined
}