Compare commits

...

2 Commits

Author SHA1 Message Date
Markury
1abd13e898 bump ver 0.1.1 2026-07-15 22:20:36 -04:00
Markury
3b67a03ad2 oopsie: handle duplicate playlist entries from spotify api (INSERT >> INSERT OR REPLACE) 2026-07-15 21:30:10 -04:00
4 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "shark",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"type": "module",
"scripts": {

2
src-tauri/Cargo.lock generated
View File

@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "Shark"
version = "0.1.0"
version = "0.1.1"
dependencies = [
"blowfish",
"byteorder",

View File

@@ -1,6 +1,6 @@
[package]
name = "Shark"
version = "0.1.0"
version = "0.1.1"
description = "powered by tauri and sveltekit"
authors = ["markuryy"]
edition = "2021"

View File

@@ -139,7 +139,7 @@ export async function upsertPlaylists(playlists: any[]): Promise<void> {
// Insert new playlists
for (const playlist of playlists) {
await database.execute(
`INSERT INTO spotify_playlists (id, name, track_count, owner_name, image_url, cached_at)
`INSERT OR REPLACE INTO spotify_playlists (id, name, track_count, owner_name, image_url, cached_at)
VALUES ($1, $2, $3, $4, $5, $6)`,
[
playlist.id,