'LIMIT 1'
const options = {
- type: QueryTypes.SELECT,
+ type: QueryTypes.SELECT as QueryTypes.SELECT,
bind: { followerActorId, videoId },
raw: true
}
if (!this.description) return null
const maxLength = CONSTRAINTS_FIELDS.VIDEOS.TRUNCATED_DESCRIPTION.max
- return peertubeTruncate(this.description, maxLength)
+ return peertubeTruncate(this.description, { length: maxLength })
}
getOriginalFileResolution () {