refactored how avatars are being handled
This commit is contained in:
@@ -70,7 +70,7 @@ async function migrateToV2() {
|
||||
if (res) {
|
||||
await prisma.user.update({
|
||||
where: { id: user.id },
|
||||
data: { imagePath: path },
|
||||
data: { image: path },
|
||||
});
|
||||
console.log(`Updated avatar for avatar ${user.id}`);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user