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", "name": "shark",
"version": "0.1.0", "version": "0.1.1",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {

2
src-tauri/Cargo.lock generated
View File

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

View File

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

View File

@@ -139,7 +139,7 @@ export async function upsertPlaylists(playlists: any[]): Promise<void> {
// Insert new playlists // Insert new playlists
for (const playlist of playlists) { for (const playlist of playlists) {
await database.execute( 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)`, VALUES ($1, $2, $3, $4, $5, $6)`,
[ [
playlist.id, playlist.id,