ndswimming92 / noteworthy-fe-capstone

Notetaking app in react
1 stars 0 forks source link

Edit a Note #14

Open ndswimming92 opened 10 months ago

ndswimming92 commented 10 months ago

User Story - what the user should see and experience

Acceptance Criteria - illustrates the scope of the individual ticket

Example -

NW4

Dependencies -

Dev Notes - dev work that needs to be completed for this ticket

const updateMember = (payload) => new Promise((resolve, reject) => {
  fetch(`${endpoint}/member/${payload.firebaseKey}.json`, {
    method: 'PATCH',
    headers: {
      'Content-Type': 'application/json',
    },
    body: JSON.stringify(payload),
  })
    .then((response) => response.json())
    .then((data) => resolve(data))
    .catch(reject);
});