Skip to content

Commit

Permalink
fix: The lock api does not call pageService's update method correctly (
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIA-Hans authored Nov 11, 2024
1 parent d90f0f2 commit 9bb49f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mockServer/src/services/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
*
*/

import { pageService } from '../routes/main-routes'
import { mockService } from '../routes/main-routes'
import { getResponseData } from '../tool/Common'
export default class AppService {
async lock(query) {
const { id, state } = query
const occupier = state === 'occupy' ? pageService.userInfo : null
await pageService.update(id, { occupier })
const occupier = state === 'occupy' ? mockService.pageService.userInfo : null
await mockService.pageService.update(id, { occupier })
return getResponseData({
operate: 'success',
occupier
Expand Down

0 comments on commit 9bb49f3

Please sign in to comment.