This commit is contained in:
ThatOneCalculator 2023-05-20 18:24:30 -07:00
parent 3edfdc5e98
commit c489a2d448
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -10,6 +10,9 @@ import { makePaginationQuery } from "../../common/make-pagination-query.js";
import { generateVisibilityQuery } from "../../common/generate-visibility-query.js";
import { generateMutedUserQuery } from "../../common/generate-muted-user-query.js";
import { generateBlockedUserQuery } from "../../common/generate-block-query.js";
import { apiLogger } from "../../logger.js";
const logger = apiLogger.createSubLogger("search", "blue", true);
export const meta = {
tags: ["notes"],
@ -124,8 +127,8 @@ export default define(meta, paramDef, async (ps, me) => {
});
return await Notes.packMany(notes, me);
} catch (e) {
console.error(e);
} catch (error) {
logger.error(error.message);
return [];
}
} else if (sonic) {