Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

queue.service.js 600B

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