Update:Remove relImagePath from Author entity

This commit is contained in:
advplyr 2022-12-26 15:29:45 -06:00
parent c3fc38639e
commit 8acf962864
3 changed files with 2 additions and 10 deletions

View file

@ -125,8 +125,7 @@ export default {
},
async removeCover() {
var updatePayload = {
imagePath: null,
relImagePath: null
imagePath: null
}
this.processing = true
var result = await this.$axios.$patch(`/api/authors/${this.authorId}`, updatePayload).catch((error) => {
@ -161,8 +160,7 @@ export default {
if (response.author.imagePath) {
this.$toast.success(this.$strings.ToastAuthorUpdateSuccess)
this.$store.commit('globals/showEditAuthorModal', response.author)
}
else this.$toast.success(this.$strings.ToastAuthorUpdateSuccessNoImageFound)
} else this.$toast.success(this.$strings.ToastAuthorUpdateSuccessNoImageFound)
} else {
this.$toast.info('No updates were made for Author')
}