Fix SQL bug

This commit is contained in:
Bryan Ashby 2023-02-20 17:09:34 -07:00
parent 40e07d7d84
commit c9f9eb9e17
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ module.exports = class Collection extends ActivityPubObject {
apDb.get( apDb.get(
`SELECT c.name, c.timestamp, c.owner_actor_id, c.is_private, c.object_json, m.meta_value `SELECT c.name, c.timestamp, c.owner_actor_id, c.is_private, c.object_json, m.meta_value
FROM collection c, collection_object_meta m FROM collection c, collection_object_meta m
WHERE c.collection_id = ? AND c.name = ? AND (c.object_id LIKE ? OR (m.object_id = c.object_id AND m.meta_name = ? AND m.meta_value LIKE ?)) WHERE c.collection_id = ? AND c.name = ? AND m.object_id = c.object_id AND (c.object_id LIKE ? OR (m.meta_name = ? AND m.meta_value LIKE ?))
LIMIT 1;`, LIMIT 1;`,
[ [
ActorCollectionId, ActorCollectionId,