fix(plugin-notification-in-app-message): fix test case with sort and type

This commit is contained in:
mytharcher 2024-11-15 12:04:34 +08:00
parent 4ebb3128ab
commit 19c914cd9d
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ describe('inapp message channels', () => {
beforeEach(async () => { beforeEach(async () => {
app = await createMockServer({ app = await createMockServer({
plugins: ['users', 'auth', 'notification-manager', 'notification-in-app-message'], plugins: ['field-sort', 'users', 'auth', 'notification-manager', 'notification-in-app-message'],
}); });
await app.pm.get('auth')?.install(); await app.pm.get('auth')?.install();
db = app.db; db = app.db;

View File

@ -21,7 +21,7 @@ export default function defineMyInAppMessages({
app: Application; app: Application;
addClient: any; addClient: any;
removeClient: any; removeClient: any;
getClient: any; getClient?: any;
}) { }) {
const countTotalUnreadMessages = async (userId: string) => { const countTotalUnreadMessages = async (userId: string) => {
const messagesRepo = app.db.getRepository(MessagesDefinition.name); const messagesRepo = app.db.getRepository(MessagesDefinition.name);