feat: initialize database connection module for data persistence
All checks were successful
On Push to Main / test (push) Successful in 39s
On Push to Main / publish (push) Successful in 1m6s
On Push to Main / deploy-dev (push) Successful in 1m40s

This commit is contained in:
RaymondVerhoef
2026-05-16 19:44:30 +02:00
parent 6e25cdbf25
commit 267fa340a8

View File

@@ -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) {