make sure validation errors in background update-featured are returned to the job queue
This commit is contained in:
parent
3c64fbc9a5
commit
e81c8b075b
5 changed files with 62 additions and 17 deletions
|
|
@ -48,7 +48,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
private readonly cacheService: CacheService,
|
||||
) {
|
||||
super(meta, paramDef, async (ps) => {
|
||||
const user = await this.cacheService.findRemoteUserById(ps.userId);
|
||||
const user = await this.cacheService.findRemoteUserById(ps.userId).catch(() => null);
|
||||
|
||||
if (!user) {
|
||||
throw new ApiError(meta.errors.noSuchUser);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue