commit
This commit is contained in:
@@ -319,7 +319,7 @@ func vacancies(ctx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||
ctx.Answer(strings.Join(out, "\n"))
|
||||
}
|
||||
|
||||
func getAJob(ctx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||
func getAJob(ctx *laniakea.MsgContext, db *laniakea.DatabaseContext) {
|
||||
if len(ctx.Args) == 0 {
|
||||
ctx.Answer("Недостаточно аргументов")
|
||||
return
|
||||
@@ -346,7 +346,7 @@ func getAJob(ctx *laniakea.MsgContext, _ *laniakea.DatabaseContext) {
|
||||
}
|
||||
user.WorkID = workId
|
||||
user.Work = work
|
||||
database.PostgresDatabase.Save(user)
|
||||
db.PostgresSQL.Save(user)
|
||||
ctx.Answer("Ты успешно устроился на работу!")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user