move "determining last updated date" to the server

This commit is contained in:
geoffrey45
2022-05-10 13:20:07 +03:00
parent d52c8ac8fe
commit b13dad4c34
7 changed files with 20 additions and 44 deletions
-2
View File
@@ -49,7 +49,6 @@ import { onMounted, ref } from "vue";
import { Playlist } from "../../interfaces";
import { updatePlaylist } from "../../composables/playlists";
import usePStore from "../../stores/p.ptracks";
import { getCurrentDate } from "../../composables/perks";
const pStore = usePStore();
@@ -103,7 +102,6 @@ function update_playlist(e: Event) {
const formData = new FormData(form);
formData.append("image", image);
formData.append("lastUpdated", getCurrentDate());
if (formData.get("name").toString().trim() !== "") {
updatePlaylist(props.playlist.playlistid, formData, pStore).then(() => {