fix backup

This commit is contained in:
Rutra
2026-05-13 16:00:07 +02:00
parent b7284d4abd
commit 5aff74b8a5
2 changed files with 3 additions and 3 deletions

View File

@@ -34,8 +34,8 @@ export default class BackupsController {
const backup = request.body();
if (backup.profile) {
await Profile.truncate();
const { name, avatarUrl, title, description, aboutText } = backup.profile;
await Profile.create({ name, avatarUrl, title, description, aboutText });
const { name, avatarUrl, title, description, aboutText, backgroundImageUrl } = backup.profile;
await Profile.create({ name, avatarUrl, title, description, aboutText, backgroundImageUrl });
}
if (Array.isArray(backup.tags)) {
await Tag.truncate();