fix conflict issue in sticker pdf service
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 20s
Laravel Pint / pint (pull_request) Failing after 2m32s
Laravel Larastan / larastan (pull_request) Failing after 5m36s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Successful in 20s
Laravel Pint / pint (pull_request) Failing after 2m32s
Laravel Larastan / larastan (pull_request) Failing after 5m36s
This commit is contained in:
@@ -192,42 +192,4 @@ Route::post('file/store', [SapFileController::class, 'store'])->name('file.store
|
||||
|
||||
Route::post('/print-pdf', [PrintController::class, 'print']);
|
||||
|
||||
|
||||
Route::post('/push/subscribe', function (Request $request) {
|
||||
|
||||
$user = Filament::auth()->user();
|
||||
abort_if(!$user, 401);
|
||||
|
||||
$request->validate([
|
||||
'endpoint' => 'required|string',
|
||||
'keys.p256dh' => 'required|string',
|
||||
'keys.auth' => 'required|string',
|
||||
]);
|
||||
|
||||
// WebPushSubscription::updateOrCreate(
|
||||
// ['endpoint' => $request->endpoint],
|
||||
// [
|
||||
// 'subscribable_type' => get_class($user),
|
||||
// 'subscribable_id' => $user->id,
|
||||
// 'public_key' => $request->keys['p256dh'],
|
||||
// 'auth_token' => $request->keys['auth'],
|
||||
// 'content_encoding' => $request->contentEncoding ?? 'aesgcm',
|
||||
// ]
|
||||
// );
|
||||
|
||||
WebPushSubscription::updateOrCreate(
|
||||
[
|
||||
'endpoint' => $request->endpoint,
|
||||
'subscribable_type' => get_class($user),
|
||||
'subscribable_id' => $user->id,
|
||||
],
|
||||
[
|
||||
'public_key' => $request->keys['p256dh'],
|
||||
'auth_token' => $request->keys['auth'],
|
||||
'content_encoding' => $request->contentEncoding ?? 'aesgcm',
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
return response()->json(['success' => true]);
|
||||
});
|
||||
Route::get('/sticker/preview/{serial}', [PrintController::class, 'preview']);
|
||||
|
||||
@@ -12,7 +12,7 @@ Artisan::command('inspire', function () {
|
||||
|
||||
Artisan::command('auto:scheduler', function () {
|
||||
$this->call('custom:scheduler');
|
||||
})->everyMinute();
|
||||
})->everyMinute()->withoutOverlapping();
|
||||
|
||||
|
||||
// Schedule::command('send:invoice-report');
|
||||
|
||||
Reference in New Issue
Block a user