mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 23:49:27 +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 () => {
|
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;
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user