feat: prepare six-lesson trial backend with reliable rewards and operations
Backend CI / type-check, build, tests (push) Successful in 1m0s
Backend CI / type-check, build, tests (push) Successful in 1m0s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -90,10 +90,12 @@ export class UsersService {
|
||||
}
|
||||
|
||||
updateProfile(userId: string, name: string): MeResponse {
|
||||
const state = this.getUserState(userId)
|
||||
state.name = name.trim()
|
||||
this.saveUserState(state)
|
||||
return this.toMeResponse(state)
|
||||
return this.database.transaction(() => {
|
||||
const state = this.getUserState(userId)
|
||||
state.name = name.trim()
|
||||
this.saveUserState(state)
|
||||
return this.toMeResponse(state)
|
||||
})
|
||||
}
|
||||
|
||||
private parseStateJson(raw: string, userId: string): UserState {
|
||||
|
||||
Reference in New Issue
Block a user