mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
Fix default setting merge
This commit is contained in:
parent
3c99c040ee
commit
0b178fc7a0
2 changed files with 3 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ const fetch = require("node-fetch")
|
|||
const db = require("./db")
|
||||
|
||||
async function fetchChannel(ucid, instance) {
|
||||
if (!instance) throw new Error("No instance parameter provided")
|
||||
// fetch
|
||||
const channel = await fetch(`${instance}/api/v1/channels/${ucid}`).then(res => res.json())
|
||||
// update database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue