db/events: don't add tags to query unless they exist
This commit is contained in:
parent
19901eb828
commit
a82ae40c43
|
@ -43,9 +43,11 @@ function insertEvent(event: Event): Promise<void> {
|
|||
return results;
|
||||
}, []);
|
||||
|
||||
if (tags.length) {
|
||||
await trx.insertInto('tags')
|
||||
.values(tags)
|
||||
.execute();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue