fix backup
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user