jeffalo / my-ocular

backend for ocular
https://ocular.jeffalo.net/docs/about#what-iswas-my-ocular
9 stars 10 forks source link

Add Aviate integration to `/api/user/:user` #29

Closed MystPi closed 2 years ago

MystPi commented 2 years ago

For every request to /api/user/:user, first check if the user has an Aviate status. If they do, use their Aviate status, otherwise use their ocular status.

I also moved let allUsers = await users.find() to inside of the else if statement to speed up the code a bit.

Oren-Lindsey commented 2 years ago

wait how did I approve it

MystPi commented 2 years ago

Any updates? Sorry if I seem impatient—I'm just curious about how you feel about this.

Weredime commented 2 years ago

we are wasting time by requesting to your aviate api. just implement it in ocular its not hard

and also if you use main branch that's a big nono

MystPi commented 2 years ago

Whoops, I forgot. @jeffalo isn't integrating Aviate with Ocular anyway, so it doesn't really matter.