mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Remove store selection and simplify announcement creation
Remove the store selection field and associated logic from the announcement creation form and backend API to simplify the process and ensure all announcements are globally applicable. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/CvLQ6E2
This commit is contained in:
1 parent
ec1fe2284f
commit
ce92323060
4 files changed
+212
-36
No files matched your search
+5
-2
@@ -3058,8 +3058,11 @@ RÉSUMÉ DU SCAN
|
||||
console.log('🎯 [SERVER] User is admin, proceeding with validation');
|
||||
|
||||
const announcementData = insertAnnouncementSchema.parse({
|
||||
...req.body,
|
||||
authorId: user.id,
|
||||
title: req.body.title,
|
||||
content: req.body.content,
|
||||
type: req.body.type || 'info',
|
||||
storeId: null, // Toutes les annonces sont globales
|
||||
createdBy: user.id,
|
||||
});
|
||||
|
||||
console.log('🎯 [SERVER] Announcement data validated:', announcementData);
|
||||
|
||||
Reference in new issue
Block a user