move "determining last updated date" to the server

This commit is contained in:
geoffrey45 committed 2022-05-10 13:20:07 +03:00
1 parent d52c8ac8fe
commit b13dad4c34
7 files changed
+20 -44

No files matched your search

-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(() => {