debug-logs-

This commit is contained in:
Untone 2024-03-04 20:26:52 +03:00
parent 8659793c30
commit 41f358c279

View File

@ -64,7 +64,7 @@ const server = Server.configure({
}) })
.then(res => res.json()) .then(res => res.json())
.then(({ data }) => { .then(({ data }) => {
console.debug(data) // console.debug(data)
const { id: author_id } = data.get_author_id const { id: author_id } = data.get_author_id
if (author_id) { if (author_id) {
fetch('https://core.discours.io/', { fetch('https://core.discours.io/', {
@ -83,7 +83,7 @@ const server = Server.configure({
}) })
.then(res => res.json()) .then(res => res.json())
.then(({data}) => { .then(({data}) => {
console.debug('shout data:', data) // console.debug('shout data:', data)
const { authors } = data.get_shout; const { authors } = data.get_shout;
if (authors.some(author => author.id === author_id)) { if (authors.some(author => author.id === author_id)) {
return resolve({ return resolve({