fix: debug sync block

This commit is contained in:
Karol Sójko 2023-09-11 19:23:09 +02:00
parent fa2564e164
commit 1d751c0fbe
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -36,7 +36,7 @@ export class BaseItemsController extends BaseHttpController {
async sync(request: Request, response: Response): Promise<results.JsonResult> {
if (response.locals.ongoingTransition === true) {
throw new Error('Cannot sync during transition')
throw new Error(`Cannot sync user ${response.locals.user.uuid} during transition`)
}
const itemHashes: ItemHash[] = []