mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
fix chat ui details
This commit is contained in:
@@ -2,9 +2,9 @@ import { EntityTable } from 'Dexie';
|
||||
import { z } from 'zod';
|
||||
|
||||
export const UserPhotoTableSchema = z.object({
|
||||
wxUserId: z.string(),
|
||||
blob: z.instanceof(Blob),
|
||||
attachmentId: z.string()
|
||||
wxUserId: z.number(),
|
||||
file: z.string(),
|
||||
attachmentId: z.string().nullable()
|
||||
})
|
||||
|
||||
export type UserPhotoTable = z.infer<typeof UserPhotoTableSchema>
|
||||
|
||||
@@ -36,7 +36,7 @@ chatDatabase.version(1).stores({
|
||||
attachment: AttachmentTableColumn,
|
||||
distribution: DistributionTableColumn,
|
||||
bold:BoldTableColumn,
|
||||
userPhotoTable: UserPhotoTableColumn
|
||||
userPhoto: UserPhotoTableColumn
|
||||
});
|
||||
|
||||
chatDatabase.message.mapToClass(MessageEntity)
|
||||
|
||||
Reference in New Issue
Block a user