mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
04403e0a34
commit
6842e1d6de
3 changed files with 2 additions and 6 deletions
|
@ -105,8 +105,8 @@ module.exports = () => {
|
|||
* @param {string} [query] - search for this string
|
||||
* @param {array} [tags] - List of tags
|
||||
* @param {array} [places] - List of places id
|
||||
* @param {array} [online_locations] - List of online locations
|
||||
* @param {integer} [max] - Limit events
|
||||
* @param {boolean} [show_multidate] - Show also multidate events (default: true)
|
||||
* @param {boolean} [show_recurrent] - Show also recurrent events (default: as choosen in admin settings)
|
||||
* @param {integer} [page] - Pagination
|
||||
* @param {boolean} [older] - select <= start instead of >=
|
||||
|
|
|
@ -164,10 +164,6 @@ const Helpers = {
|
|||
}
|
||||
|
||||
fedi_user = await Helpers.signAndSend('', URL, 'get')
|
||||
.catch(e => {
|
||||
log.error(`[FEDI] getActor ${URL}: %s`, e?.response?.data?.error ?? String(e) )
|
||||
return false
|
||||
})
|
||||
|
||||
if (fedi_user) {
|
||||
log.info('[FEDI] Create a new AP User "%s" and associate it to instance "%s"', URL, instance.domain)
|
||||
|
|
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
having: Sequelize.where(Sequelize.fn('COUNT', Sequelize.col('events.id')), '=', 0)
|
||||
})
|
||||
if (!places.length) { return }
|
||||
log.debug(`Remove ${places.length} unrelated places`)
|
||||
log.debug(`Remove ${places.length} unrelated places: %s`, places.map(p => p.name).join(', '))
|
||||
|
||||
const ids = places.map(p => p.id)
|
||||
await Place.destroy({
|
||||
|
|
Loading…
Reference in a new issue