Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert logic to detect change of sheet on update #2

Closed
github-actions bot opened this issue Dec 29, 2022 · 1 comment
Closed

insert logic to detect change of sheet on update #2

github-actions bot opened this issue Dec 29, 2022 · 1 comment
Assignees
Labels
bug Something isn't working todo

Comments

@github-actions
Copy link

https://github.com/groton-school/bb-lists-to-google-sheets/blob/afda435ec3e6d4fba3f9c23f41539d5871aac6b1/Spreadsheets.js#L36

function actionUpdateSheet({ parameters: { state } }) {
  State.restore(state);
  // FIXME insert logic to detect change of sheet on update
  const data = SKY.school.v1.lists(State.metadata.list.id, SKY.Response.Array);
  const updatedRange = [State.metadata.range[0], State.metadata.range[1], data.length, data[0].length];
  if (data.length > State.metadata.range[2]) {
@github-actions github-actions bot added bug Something isn't working todo labels Dec 29, 2022
@github-actions github-actions bot closed this as completed Jan 4, 2023
@github-actions
Copy link
Author

github-actions bot commented Jan 4, 2023

Closed in 6e80399

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo
Projects
None yet
Development

No branches or pull requests

1 participant