mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-23 21:15:13 +00:00
Fix bug
This commit is contained in:
parent
42248a306a
commit
c267baafdc
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ export default define(meta, async (ps, user) => {
|
||||||
const day = 1000 * 60 * 60 * 24 * 3; // 3日前まで
|
const day = 1000 * 60 * 60 * 24 * 3; // 3日前まで
|
||||||
|
|
||||||
const query = Notes.createQueryBuilder('note')
|
const query = Notes.createQueryBuilder('note')
|
||||||
|
.where('note.userHost IS NULL')
|
||||||
.andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) })
|
.andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) })
|
||||||
.andWhere(`note.visibility = 'public'`)
|
.andWhere(`note.visibility = 'public'`)
|
||||||
.leftJoinAndSelect('note.user', 'user');
|
.leftJoinAndSelect('note.user', 'user');
|
||||||
|
|
Loading…
Reference in a new issue