Commit 3c4999b4 by Arjun Jhukal

updated the new way to updated device id in header

parent ae5dad8e
......@@ -19,9 +19,9 @@ export const baseQuery = fetchBaseQuery({
headers.set("Accept", "application/json");
// headers.set("Content-Type", "application/json");
console.log("deviceId",globalDeviceId)
console.log("deviceId", globalDeviceId)
if (globalDeviceId) {
headers.set("device_id", globalDeviceId);
headers.set("Device_id", globalDeviceId);
}
if (token) {
headers.set("Authorization", `Bearer ${token}`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment