|
|
@@ -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 }
|