Kaynağa Gözat

started structure for queue.services, need more info atm

tags/0.0.1
diaseu 4 yıl önce
ebeveyn
işleme
962f1ac70a
1 değiştirilmiş dosya ile 20 ekleme ve 0 silme
  1. 20
    0
      frontend/src/services/queue.service.js

+ 20
- 0
frontend/src/services/queue.service.js Dosyayı Görüntüle

@@ -0,0 +1,20 @@
1
+import { db } from '../utils/db'
2
+// import { Queue } from '../entities/queue'
3
+
4
+// TODO: queue services
5
+const fetchQueueByProfileId = async profileId => {
6
+    const queue = await db.get(`/profile/{profileId}/queue?include_profile=true`)
7
+
8
+    const profilelist = []
9
+
10
+
11
+    // const myMatchQueue = new Queue(profilelist)
12
+    // return myMatchQueue
13
+}
14
+
15
+const saveQueueByProfileId = async (targetId, profileId) => {
16
+    // const updateQueue = db.patch(`/profile/{profileId}/queue/{targetId}/delete?include_profile=true&reinsert=true`)
17
+    // return updateQueue
18
+}
19
+
20
+export { fetchQueueByProfileId, saveQueue }

Loading…
İptal
Kaydet