fix: clear consumed Telegram challenges after link changes
This commit is contained in:
+1
-1
@@ -921,7 +921,7 @@ const server = http.createServer(async (req, res) => {
|
||||
}
|
||||
const bulunan=await linker.link(user.email,body.kod,kodIleBagla);
|
||||
return json(res, 200, { success: true, ad: bulunan.ad });
|
||||
} catch (e) { return json(res,e.kod==='VERSION_CONFLICT'?409:e.status||502,{success:false,error:e.message}); }
|
||||
} catch (e) { return json(res,e.kod==='VERSION_CONFLICT'?409:e.status||502,{success:false,error:e.message,kod:e.kod}); }
|
||||
}
|
||||
return json(res,405,{success:false,error:'Desteklenmeyen metot.'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user