From 267fa340a86ebf19b2aae4afc4dc7e75abb7c0de Mon Sep 17 00:00:00 2001 From: RaymondVerhoef Date: Sat, 16 May 2026 19:44:30 +0200 Subject: [PATCH] feat: initialize database connection module for data persistence --- src/lib/db.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/db.js b/src/lib/db.js index 22a07f4..9f8f37c 100644 --- a/src/lib/db.js +++ b/src/lib/db.js @@ -3,7 +3,7 @@ import { pb } from './pb'; // ── Topics ────────────────────────────────────────────────────────────────── export async function getTopics() { - return pb.collection('topics').getFullList({ sort: 'created' }); + return pb.collection('topics').getFullList(); } export async function saveTopics(topics) { @@ -100,7 +100,7 @@ export async function deleteQuestionFromBank(topicId, questionId) { // ── Sources ────────────────────────────────────────────────────────────────── export async function getSources() { - return pb.collection('sources').getFullList({ sort: '-created' }); + return pb.collection('sources').getFullList(); } export async function addSource(source) { @@ -118,7 +118,7 @@ export async function deleteSource(id) { // ── Team Members ───────────────────────────────────────────────────────────── export async function getTeamMembers() { - return pb.collection('team_members').getFullList({ sort: 'created' }); + return pb.collection('team_members').getFullList(); } export async function addTeamMember(member) {