Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aon-tg-messenger
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
aon-tg-messenger
Commits
df24c65b
Commit
df24c65b
authored
Oct 09, 2024
by
贾浩@五瓣科技
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
dfd50055
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
db.go
dao/db.go
+1
-1
No files found.
dao/db.go
View file @
df24c65b
...
@@ -59,7 +59,7 @@ func (d *Dao) UserExist(userId, chatId int) (dbUser *dbModel.User, err error) {
...
@@ -59,7 +59,7 @@ func (d *Dao) UserExist(userId, chatId int) (dbUser *dbModel.User, err error) {
func
(
d
*
Dao
)
UpdateUserName
(
userId
,
chatId
int
,
username
,
firstName
,
lastName
string
)
(
err
error
)
{
func
(
d
*
Dao
)
UpdateUserName
(
userId
,
chatId
int
,
username
,
firstName
,
lastName
string
)
(
err
error
)
{
return
d
.
db
.
Model
(
&
dbModel
.
User
{})
.
return
d
.
db
.
Model
(
&
dbModel
.
User
{})
.
Where
(
"user_id = ? AND chat_id = ? AND
left_at IS NULL"
,
userId
,
chatId
)
.
Where
(
"user_id = ? AND chat_id = ? AND
first_name = ? AND last_name = ? AND left_at IS NULL"
,
userId
,
chatId
,
firstName
,
lastName
)
.
Update
(
"username"
,
username
)
.
Error
Update
(
"username"
,
username
)
.
Error
}
}
...
...
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