feat: update student import and graduation workflows
This commit is contained in:
@@ -44,14 +44,10 @@ class SyncTokenController extends Controller
|
||||
|
||||
public function revoke(SyncToken $syncToken): RedirectResponse
|
||||
{
|
||||
if (! $syncToken->revoked_at) {
|
||||
$syncToken->update([
|
||||
'revoked_at' => now(),
|
||||
]);
|
||||
}
|
||||
$syncToken->delete();
|
||||
|
||||
return redirect()
|
||||
->route('settings.sync-tokens.index')
|
||||
->with('status', 'Token sinkronisasi berhasil dinonaktifkan.');
|
||||
->with('status', 'Token sinkronisasi berhasil dihapus.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user