mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 02:09:06 +00:00
feat(agent): use deterministic storage keys for preset avatars (#404)
This commit is contained in:
@@ -88,7 +88,7 @@ describe('migrateLegacyAgentAvatars', () => {
|
||||
const updatedAgent = await prisma.user.findUnique({
|
||||
where: { id: agentUser.id },
|
||||
})
|
||||
expect(updatedAgent?.image).toMatch(/^files\/[A-Z0-9]{26}\.webp$/)
|
||||
expect(updatedAgent?.image).toBe('files/avatars/avatar-1.webp')
|
||||
|
||||
const updatedAgentRecord = await prisma.agent.findUnique({
|
||||
where: { id: agentUser.id },
|
||||
|
||||
Reference in New Issue
Block a user