Skip to content

Commit 06f7ba7

Browse files
committed
fix: lint issues
1 parent 892be6e commit 06f7ba7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/src/mock-builders/event/notificationMarkUnread.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default (client, channel = {}, payload = {}, user = {}) => {
33
channel,
44
cid: channel.cid,
55
type: 'notification.mark_unread',
6-
user: user,
6+
user,
77
...payload,
88
});
99
};

package/src/mock-builders/generator/channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const defaultState = {
5757
const getChannelDefaults = (
5858
{ id, type }: { [key: string]: any } = { id: uuidv4(), type: 'messaging' },
5959
) => ({
60+
cid: `${type}:${id}`,
6061
_client: {},
6162
data: {
6263
cid: `${type}:${id}`,
@@ -73,7 +74,6 @@ const getChannelDefaults = (
7374
type,
7475
updated_at: '2020-04-28T11:20:48.578147Z',
7576
},
76-
cid: `${type}:${id}`,
7777
id,
7878
state: defaultState,
7979
type,

0 commit comments

Comments
 (0)