Skip to content

Commit

Permalink
Fix Announcement Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
samad-yar-khan committed Apr 2, 2022
1 parent 869f6c8 commit 7974ecf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/lib/announcement.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { fetchAPI } from "./api";


export const getAnnouncementData = async (announcement_code) => {
try {
const res = await fetchAPI("/announcements");
console.log(res);
let neededAnnouncement = new Object();
res.forEach((announcement) => {
if (announcement.announcement_code === announcement_code) {
Expand Down

0 comments on commit 7974ecf

Please sign in to comment.