Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
- Increase chunk size for audio streaming
- Relevant Audio Ad fallback ad issue Bug
- Facebook posting summary not posted Bug
  • Loading branch information
needl3 committed May 22, 2023
1 parent 097b40a commit 3381cfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/controllers/relevantAudioAd.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async function getRelevantAudioAd(history) {
.flat()
let freeSpace = AD_LIMIT - allocatedAds.length

while (freeSpace && !allocatedAds.length && selectedAd.length) {
while (freeSpace && selectedAd.length) {
selectedAd.forEach(ad => {
const lastElement = ad.final.pop()
if (lastElement !== undefined && freeSpace) {
Expand Down
2 changes: 1 addition & 1 deletion server/routes/article/addArticle.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const addArticle = async (req, res) => {
if (socialApis[social])
socialApis[social]({
title,
summary: data.summary,
summary: data.summarizedContent,
link:
process.env.ORIGIN +
'/news/' +
Expand Down
2 changes: 1 addition & 1 deletion server/routes/article/recite.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { Readable } = require('stream')
const adsModel = require('@/model/ads')
const articleModel = require('@/model/article')

const CHUNK_SIZE = 1024 * 1024
const CHUNK_SIZE = 1024 * 1024 * 5
const HEADER_SIZE = 44

// Helper function to convert hex
Expand Down

0 comments on commit 3381cfa

Please sign in to comment.