mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
9 lines
273 B
JavaScript
9 lines
273 B
JavaScript
const db = {};
|
|
export const setKnownListings = (jobKey, providerId, listings) => {
|
|
if (!Array.isArray(listings)) throw Error('Not a valid array');
|
|
db[providerId] = listings;
|
|
};
|
|
export const getKnownListings = (jobKey, providerId) => {
|
|
return db[providerId] || [];
|
|
};
|