this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

try this for deleting

+2 -1
+2 -1
database.go
··· 182 182 } 183 183 184 184 func getSubscribingPostParentURI(db *sql.DB, userDID, rkey string) (string, error) { 185 + slog.Info("params", "rkey", rkey, "did", userDID) 185 186 sql := "SELECT id, parentURI FROM subscriptions WHERE subscriptionRkey = ? AND userDID = ?;" 186 187 rows, err := db.Query(sql, rkey, userDID) 187 188 if err != nil { ··· 205 206 } 206 207 207 208 func deleteSubscriptionForUser(db *sql.DB, userDID, parentURI string) error { 208 - sql := "DELETE FROM subscriptions WHERE (parentURI = ? AND userDID = ?);" 209 + sql := "DELETE FROM subscriptions WHERE parentURI = ? AND userDID = ?;" 209 210 _, err := db.Exec(sql, parentURI, userDID) 210 211 if err != nil { 211 212 return fmt.Errorf("exec delete subscription for user: %w", err)