mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix bug
This commit is contained in:
parent
56e856233c
commit
415cd55cf0
2 changed files with 8 additions and 6 deletions
|
@ -1,4 +1,3 @@
|
|||
import $ from 'cafy';
|
||||
import Note from '../../../../models/note';
|
||||
|
||||
export const meta = {
|
||||
|
@ -11,8 +10,10 @@ export const meta = {
|
|||
*/
|
||||
export default (params: any) => new Promise(async (res, rej) => {
|
||||
const query = [{
|
||||
createdAt: {
|
||||
$gt: new Date(new Date().setFullYear(new Date().getFullYear() - 1))
|
||||
$match: {
|
||||
createdAt: {
|
||||
$gt: new Date(new Date().setFullYear(new Date().getFullYear() - 1))
|
||||
}
|
||||
}
|
||||
}, {
|
||||
$project: {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import $ from 'cafy';
|
||||
import User from '../../../../models/user';
|
||||
|
||||
export const meta = {
|
||||
|
@ -11,8 +10,10 @@ export const meta = {
|
|||
*/
|
||||
export default (params: any) => new Promise(async (res, rej) => {
|
||||
const query = [{
|
||||
createdAt: {
|
||||
$gt: new Date(new Date().setFullYear(new Date().getFullYear() - 1))
|
||||
$match: {
|
||||
createdAt: {
|
||||
$gt: new Date(new Date().setFullYear(new Date().getFullYear() - 1))
|
||||
}
|
||||
}
|
||||
}, {
|
||||
$project: {
|
||||
|
|
Loading…
Add table
Reference in a new issue