Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f220c10b
authored
Oct 12, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://gitlab.corp.qinqinxiaobao.com:9880/uniplat/customer-service
parents
23cf5fea
a8b6a936
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
database/index.ts
database/index.ts
View file @
f220c10b
...
@@ -60,7 +60,7 @@ class ChatCacheDatabaseController {
...
@@ -60,7 +60,7 @@ class ChatCacheDatabaseController {
// eslint-disable-next-line @typescript-eslint/no-this-alias
// eslint-disable-next-line @typescript-eslint/no-this-alias
const
that
=
this
;
const
that
=
this
;
const
setupDb
=
()
=>
{
const
setupDb
=
()
=>
{
const
db
=
that
.
messageDatabases
.
get
(
k
);
const
db
=
that
.
messageDatabases
.
get
(
k
)
as
IDBDatabase
;
try
{
try
{
that
.
buildTables
(
db
,
this
.
chatMessageKey
,
"id"
);
that
.
buildTables
(
db
,
this
.
chatMessageKey
,
"id"
);
}
catch
(
e
)
{
}
catch
(
e
)
{
...
@@ -127,7 +127,7 @@ class ChatCacheDatabaseController {
...
@@ -127,7 +127,7 @@ class ChatCacheDatabaseController {
t
.
onsuccess
=
(
r
)
=>
{
t
.
onsuccess
=
(
r
)
=>
{
const
chat
=
(
r
.
target
as
any
).
result
as
Chat
;
const
chat
=
(
r
.
target
as
any
).
result
as
Chat
;
if
(
chat
)
{
if
(
chat
)
{
chat
.
eid
=
p
.
eid
;
chat
.
eid
=
p
.
eid
as
string
;
p
.
ts
&&
(
chat
.
last_msg_ts
=
p
.
ts
);
p
.
ts
&&
(
chat
.
last_msg_ts
=
p
.
ts
);
p
.
eid
&&
(
chat
.
last_msg_sender
=
p
.
eid
);
p
.
eid
&&
(
chat
.
last_msg_sender
=
p
.
eid
);
p
.
type
&&
(
chat
.
last_msg_type
=
p
.
type
);
p
.
type
&&
(
chat
.
last_msg_type
=
p
.
type
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment