pack(Many) の me が optional にならないように

This commit is contained in:
riku6460
2023-10-11 04:59:17 +09:00
parent 1a5ba39329
commit df0a663283
26 changed files with 36 additions and 35 deletions

View File

@@ -188,7 +188,7 @@ export class QueryService {
}
@bindThis
public generateVisibilityQuery(q: SelectQueryBuilder<any>, me?: { id: MiUser['id'] } | null): void {
public generateVisibilityQuery(q: SelectQueryBuilder<any>, me: { id: MiUser['id'] } | null): void {
// This code must always be synchronized with the checks in Notes.isVisibleForMe.
if (me == null) {
q.andWhere(new Brackets(qb => {