mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 15:39:24 +08:00
fix(plugin-notification-in-app-message): fix test case with sort and type
This commit is contained in:
parent
4ebb3128ab
commit
19c914cd9d
@ -28,7 +28,7 @@ describe('inapp message channels', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
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();
|
||||
db = app.db;
|
||||
|
@ -21,7 +21,7 @@ export default function defineMyInAppMessages({
|
||||
app: Application;
|
||||
addClient: any;
|
||||
removeClient: any;
|
||||
getClient: any;
|
||||
getClient?: any;
|
||||
}) {
|
||||
const countTotalUnreadMessages = async (userId: string) => {
|
||||
const messagesRepo = app.db.getRepository(MessagesDefinition.name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user